Projeto AED
compound.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4#
5# Generated by generateDS.py.
6#
7#
8# Command line options:
9# ('--no-dates', '')
10# ('--no-versions', '')
11# ('-f', '')
12# ('-o', '.../addon/doxmlparser/doxmlparser/compound.py')
13#
14# Command line arguments:
15# .../templates/xml/compound.xsd
16#
17# Command line:
18# .../generateDS --no-dates --no-versions -f -o ".../addon/doxmlparser/doxmlparser/compound.py" .../templates/xml/compound.xsd
19#
20# Current working directory (os.getcwd()):
21# doxmlparser
22#
23
24import sys
25try:
26 ModulenotfoundExp_ = ModuleNotFoundError
27except NameError:
28 ModulenotfoundExp_ = ImportError
29from six.moves import zip_longest
30import os
31import re as re_
32import base64
33import datetime as datetime_
34import decimal as decimal_
35try:
36 from lxml import etree as etree_
37except ModulenotfoundExp_ :
38 from xml.etree import ElementTree as etree_
39
40
41Validate_simpletypes_ = True
42SaveElementTreeNode = True
43if sys.version_info.major == 2:
44 BaseStrType_ = basestring
45else:
46 BaseStrType_ = str
47
48
49def parsexml_(infile, parser=None, **kwargs):
50 if parser is None:
51 # Use the lxml ElementTree compatible parser so that, e.g.,
52 # we ignore comments.
53 try:
54 parser = etree_.ETCompatXMLParser()
55 except AttributeError:
56 # fallback to xml.etree
57 parser = etree_.XMLParser()
58 try:
59 if isinstance(infile, os.PathLike):
60 infile = os.path.join(infile)
61 except AttributeError:
62 pass
63 doc = etree_.parse(infile, parser=parser, **kwargs)
64 return doc
65
66def parsexmlstring_(instring, parser=None, **kwargs):
67 if parser is None:
68 # Use the lxml ElementTree compatible parser so that, e.g.,
69 # we ignore comments.
70 try:
71 parser = etree_.ETCompatXMLParser()
72 except AttributeError:
73 # fallback to xml.etree
74 parser = etree_.XMLParser()
75 element = etree_.fromstring(instring, parser=parser, **kwargs)
76 return element
77
78#
79# Namespace prefix definition table (and other attributes, too)
80#
81# The module generatedsnamespaces, if it is importable, must contain
82# a dictionary named GeneratedsNamespaceDefs. This Python dictionary
83# should map element type names (strings) to XML schema namespace prefix
84# definitions. The export method for any class for which there is
85# a namespace prefix definition, will export that definition in the
86# XML representation of that element. See the export method of
87# any generated element type class for an example of the use of this
88# table.
89# A sample table is:
90#
91# # File: generatedsnamespaces.py
92#
93# GenerateDSNamespaceDefs = {
94# "ElementtypeA": "http://www.xxx.com/namespaceA",
95# "ElementtypeB": "http://www.xxx.com/namespaceB",
96# }
97#
98# Additionally, the generatedsnamespaces module can contain a python
99# dictionary named GenerateDSNamespaceTypePrefixes that associates element
100# types with the namespace prefixes that are to be added to the
101# "xsi:type" attribute value. See the exportAttributes method of
102# any generated element type and the generation of "xsi:type" for an
103# example of the use of this table.
104# An example table:
105#
106# # File: generatedsnamespaces.py
107#
108# GenerateDSNamespaceTypePrefixes = {
109# "ElementtypeC": "aaa:",
110# "ElementtypeD": "bbb:",
111# }
112#
113
114try:
115 from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_
116except ModulenotfoundExp_ :
117 GenerateDSNamespaceDefs_ = {}
118try:
119 from generatedsnamespaces import GenerateDSNamespaceTypePrefixes as GenerateDSNamespaceTypePrefixes_
120except ModulenotfoundExp_ :
121 GenerateDSNamespaceTypePrefixes_ = {}
122
123#
124# You can replace the following class definition by defining an
125# importable module named "generatedscollector" containing a class
126# named "GdsCollector". See the default class definition below for
127# clues about the possible content of that class.
128#
129try:
130 from generatedscollector import GdsCollector as GdsCollector_
131except ModulenotfoundExp_ :
132
133 class GdsCollector_(object):
134
135 def __init__(self, messages=None):
136 if messages is None:
137 self.messages = []
138 else:
139 self.messages = messages
140
141 def add_message(self, msg):
142 self.messages.append(msg)
143
144 def get_messages(self):
145 return self.messages
146
147 def clear_messages(self):
148 self.messages = []
149
150 def print_messages(self):
151 for msg in self.messages:
152 print("Warning: {}".format(msg))
153
154 def write_messages(self, outstream):
155 for msg in self.messages:
156 outstream.write("Warning: {}\n".format(msg))
157
158
159#
160# The super-class for enum types
161#
162
163try:
164 from enum import Enum
165except ModulenotfoundExp_ :
166 Enum = object
167
168#
169# The root super-class for element type classes
170#
171# Calls to the methods in these classes are generated by generateDS.py.
172# You can replace these methods by re-implementing the following class
173# in a module named generatedssuper.py.
174
175try:
176 from generatedssuper import GeneratedsSuper
177except ModulenotfoundExp_ as exp:
178
179 class GeneratedsSuper(object):
180 __hash__ = object.__hash__
181 tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$')
182 class _FixedOffsetTZ(datetime_.tzinfo):
183 def __init__(self, offset, name):
184 self.__offset = datetime_.timedelta(minutes=offset)
185 self.__name = name
186 def utcoffset(self, dt):
187 return self.__offset
188 def tzname(self, dt):
189 return self.__name
190 def dst(self, dt):
191 return None
192 def gds_format_string(self, input_data, input_name=''):
193 return input_data
194 def gds_parse_string(self, input_data, node=None, input_name=''):
195 return input_data
196 def gds_validate_string(self, input_data, node=None, input_name=''):
197 if not input_data:
198 return ''
199 else:
200 return input_data
201 def gds_format_base64(self, input_data, input_name=''):
202 return base64.b64encode(input_data)
203 def gds_validate_base64(self, input_data, node=None, input_name=''):
204 return input_data
205 def gds_format_integer(self, input_data, input_name=''):
206 return '%d' % input_data
207 def gds_parse_integer(self, input_data, node=None, input_name=''):
208 try:
209 ival = int(input_data)
210 except (TypeError, ValueError) as exp:
211 raise_parse_error(node, 'Requires integer value: %s' % exp)
212 return ival
213 def gds_validate_integer(self, input_data, node=None, input_name=''):
214 try:
215 value = int(input_data)
216 except (TypeError, ValueError):
217 raise_parse_error(node, 'Requires integer value')
218 return value
219 def gds_format_integer_list(self, input_data, input_name=''):
220 if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_):
221 input_data = [str(s) for s in input_data]
222 return '%s' % ' '.join(input_data)
224 self, input_data, node=None, input_name=''):
225 values = input_data.split()
226 for value in values:
227 try:
228 int(value)
229 except (TypeError, ValueError):
230 raise_parse_error(node, 'Requires sequence of integer values')
231 return values
232 def gds_format_float(self, input_data, input_name=''):
233 return ('%.15f' % input_data).rstrip('0')
234 def gds_parse_float(self, input_data, node=None, input_name=''):
235 try:
236 fval_ = float(input_data)
237 except (TypeError, ValueError) as exp:
238 raise_parse_error(node, 'Requires float or double value: %s' % exp)
239 return fval_
240 def gds_validate_float(self, input_data, node=None, input_name=''):
241 try:
242 value = float(input_data)
243 except (TypeError, ValueError):
244 raise_parse_error(node, 'Requires float value')
245 return value
246 def gds_format_float_list(self, input_data, input_name=''):
247 if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_):
248 input_data = [str(s) for s in input_data]
249 return '%s' % ' '.join(input_data)
251 self, input_data, node=None, input_name=''):
252 values = input_data.split()
253 for value in values:
254 try:
255 float(value)
256 except (TypeError, ValueError):
257 raise_parse_error(node, 'Requires sequence of float values')
258 return values
259 def gds_format_decimal(self, input_data, input_name=''):
260 return_value = '%s' % input_data
261 if '.' in return_value:
262 return_value = return_value.rstrip('0')
263 if return_value.endswith('.'):
264 return_value = return_value.rstrip('.')
265 return return_value
266 def gds_parse_decimal(self, input_data, node=None, input_name=''):
267 try:
268 decimal_value = decimal_.Decimal(input_data)
269 except (TypeError, ValueError):
270 raise_parse_error(node, 'Requires decimal value')
271 return decimal_value
272 def gds_validate_decimal(self, input_data, node=None, input_name=''):
273 try:
274 value = decimal_.Decimal(input_data)
275 except (TypeError, ValueError):
276 raise_parse_error(node, 'Requires decimal value')
277 return value
278 def gds_format_decimal_list(self, input_data, input_name=''):
279 if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_):
280 input_data = [str(s) for s in input_data]
281 return ' '.join([self.gds_format_decimalgds_format_decimal(item) for item in input_data])
283 self, input_data, node=None, input_name=''):
284 values = input_data.split()
285 for value in values:
286 try:
287 decimal_.Decimal(value)
288 except (TypeError, ValueError):
289 raise_parse_error(node, 'Requires sequence of decimal values')
290 return values
291 def gds_format_double(self, input_data, input_name=''):
292 return '%s' % input_data
293 def gds_parse_double(self, input_data, node=None, input_name=''):
294 try:
295 fval_ = float(input_data)
296 except (TypeError, ValueError) as exp:
297 raise_parse_error(node, 'Requires double or float value: %s' % exp)
298 return fval_
299 def gds_validate_double(self, input_data, node=None, input_name=''):
300 try:
301 value = float(input_data)
302 except (TypeError, ValueError):
303 raise_parse_error(node, 'Requires double or float value')
304 return value
305 def gds_format_double_list(self, input_data, input_name=''):
306 if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_):
307 input_data = [str(s) for s in input_data]
308 return '%s' % ' '.join(input_data)
310 self, input_data, node=None, input_name=''):
311 values = input_data.split()
312 for value in values:
313 try:
314 float(value)
315 except (TypeError, ValueError):
317 node, 'Requires sequence of double or float values')
318 return values
319 def gds_format_boolean(self, input_data, input_name=''):
320 return ('%s' % input_data).lower()
321 def gds_parse_boolean(self, input_data, node=None, input_name=''):
322 if input_data in ('true', '1'):
323 bval = True
324 elif input_data in ('false', '0'):
325 bval = False
326 else:
327 raise_parse_error(node, 'Requires boolean value')
328 return bval
329 def gds_validate_boolean(self, input_data, node=None, input_name=''):
330 if input_data not in (True, 1, False, 0, ):
332 node,
333 'Requires boolean value '
334 '(one of True, 1, False, 0)')
335 return input_data
336 def gds_format_boolean_list(self, input_data, input_name=''):
337 if len(input_data) > 0 and not isinstance(input_data[0], BaseStrType_):
338 input_data = [str(s) for s in input_data]
339 return '%s' % ' '.join(input_data)
341 self, input_data, node=None, input_name=''):
342 values = input_data.split()
343 for value in values:
344 if value not in (True, 1, False, 0, ):
346 node,
347 'Requires sequence of boolean values '
348 '(one of True, 1, False, 0)')
349 return values
350 def gds_validate_datetime(self, input_data, node=None, input_name=''):
351 return input_data
352 def gds_format_datetime(self, input_data, input_name=''):
353 if input_data.microsecond == 0:
354 _svalue = '%04d-%02d-%02dT%02d:%02d:%02d' % (
355 input_data.year,
356 input_data.month,
357 input_data.day,
358 input_data.hour,
359 input_data.minute,
360 input_data.second,
361 )
362 else:
363 _svalue = '%04d-%02d-%02dT%02d:%02d:%02d.%s' % (
364 input_data.year,
365 input_data.month,
366 input_data.day,
367 input_data.hour,
368 input_data.minute,
369 input_data.second,
370 ('%f' % (float(input_data.microsecond) / 1000000))[2:],
371 )
372 if input_data.tzinfo is not None:
373 tzoff = input_data.tzinfo.utcoffset(input_data)
374 if tzoff is not None:
375 total_seconds = tzoff.seconds + (86400 * tzoff.days)
376 if total_seconds == 0:
377 _svalue += 'Z'
378 else:
379 if total_seconds < 0:
380 _svalue += '-'
381 total_seconds *= -1
382 else:
383 _svalue += '+'
384 hours = total_seconds // 3600
385 minutes = (total_seconds - (hours * 3600)) // 60
386 _svalue += '{0:02d}:{1:02d}'.format(hours, minutes)
387 return _svalue
388 @classmethod
389 def gds_parse_datetime(cls, input_data):
390 tz = None
391 if input_data[-1] == 'Z':
392 tz = GeneratedsSuper._FixedOffsetTZ(0, 'UTC')
393 input_data = input_data[:-1]
394 else:
395 results = GeneratedsSuper.tzoff_pattern.search(input_data)
396 if results is not None:
397 tzoff_parts = results.group(2).split(':')
398 tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1])
399 if results.group(1) == '-':
400 tzoff *= -1
402 tzoff, results.group(0))
403 input_data = input_data[:-6]
404 time_parts = input_data.split('.')
405 if len(time_parts) > 1:
406 micro_seconds = int(float('0.' + time_parts[1]) * 1000000)
407 input_data = '%s.%s' % (
408 time_parts[0], "{}".format(micro_seconds).rjust(6, "0"), )
409 dt = datetime_.datetime.strptime(
410 input_data, '%Y-%m-%dT%H:%M:%S.%f')
411 else:
412 dt = datetime_.datetime.strptime(
413 input_data, '%Y-%m-%dT%H:%M:%S')
414 dt = dt.replace(tzinfo=tz)
415 return dt
416 def gds_validate_date(self, input_data, node=None, input_name=''):
417 return input_data
418 def gds_format_date(self, input_data, input_name=''):
419 _svalue = '%04d-%02d-%02d' % (
420 input_data.year,
421 input_data.month,
422 input_data.day,
423 )
424 try:
425 if input_data.tzinfo is not None:
426 tzoff = input_data.tzinfo.utcoffset(input_data)
427 if tzoff is not None:
428 total_seconds = tzoff.seconds + (86400 * tzoff.days)
429 if total_seconds == 0:
430 _svalue += 'Z'
431 else:
432 if total_seconds < 0:
433 _svalue += '-'
434 total_seconds *= -1
435 else:
436 _svalue += '+'
437 hours = total_seconds // 3600
438 minutes = (total_seconds - (hours * 3600)) // 60
439 _svalue += '{0:02d}:{1:02d}'.format(
440 hours, minutes)
441 except AttributeError:
442 pass
443 return _svalue
444 @classmethod
445 def gds_parse_date(cls, input_data):
446 tz = None
447 if input_data[-1] == 'Z':
448 tz = GeneratedsSuper._FixedOffsetTZ(0, 'UTC')
449 input_data = input_data[:-1]
450 else:
451 results = GeneratedsSuper.tzoff_pattern.search(input_data)
452 if results is not None:
453 tzoff_parts = results.group(2).split(':')
454 tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1])
455 if results.group(1) == '-':
456 tzoff *= -1
458 tzoff, results.group(0))
459 input_data = input_data[:-6]
460 dt = datetime_.datetime.strptime(input_data, '%Y-%m-%d')
461 dt = dt.replace(tzinfo=tz)
462 return dt.date()
463 def gds_validate_time(self, input_data, node=None, input_name=''):
464 return input_data
465 def gds_format_time(self, input_data, input_name=''):
466 if input_data.microsecond == 0:
467 _svalue = '%02d:%02d:%02d' % (
468 input_data.hour,
469 input_data.minute,
470 input_data.second,
471 )
472 else:
473 _svalue = '%02d:%02d:%02d.%s' % (
474 input_data.hour,
475 input_data.minute,
476 input_data.second,
477 ('%f' % (float(input_data.microsecond) / 1000000))[2:],
478 )
479 if input_data.tzinfo is not None:
480 tzoff = input_data.tzinfo.utcoffset(input_data)
481 if tzoff is not None:
482 total_seconds = tzoff.seconds + (86400 * tzoff.days)
483 if total_seconds == 0:
484 _svalue += 'Z'
485 else:
486 if total_seconds < 0:
487 _svalue += '-'
488 total_seconds *= -1
489 else:
490 _svalue += '+'
491 hours = total_seconds // 3600
492 minutes = (total_seconds - (hours * 3600)) // 60
493 _svalue += '{0:02d}:{1:02d}'.format(hours, minutes)
494 return _svalue
495 def gds_validate_simple_patterns(self, patterns, target):
496 # pat is a list of lists of strings/patterns.
497 # The target value must match at least one of the patterns
498 # in order for the test to succeed.
499 found1 = True
500 for patterns1 in patterns:
501 found2 = False
502 for patterns2 in patterns1:
503 mo = re_.search(patterns2, target)
504 if mo is not None and len(mo.group(0)) == len(target):
505 found2 = True
506 break
507 if not found2:
508 found1 = False
509 break
510 return found1
511 @classmethod
512 def gds_parse_time(cls, input_data):
513 tz = None
514 if input_data[-1] == 'Z':
515 tz = GeneratedsSuper._FixedOffsetTZ(0, 'UTC')
516 input_data = input_data[:-1]
517 else:
518 results = GeneratedsSuper.tzoff_pattern.search(input_data)
519 if results is not None:
520 tzoff_parts = results.group(2).split(':')
521 tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1])
522 if results.group(1) == '-':
523 tzoff *= -1
525 tzoff, results.group(0))
526 input_data = input_data[:-6]
527 if len(input_data.split('.')) > 1:
528 dt = datetime_.datetime.strptime(input_data, '%H:%M:%S.%f')
529 else:
530 dt = datetime_.datetime.strptime(input_data, '%H:%M:%S')
531 dt = dt.replace(tzinfo=tz)
532 return dt.time()
534 self, value, input_name,
535 min_occurs=0, max_occurs=1, required=None):
536 if value is None:
537 length = 0
538 elif isinstance(value, list):
539 length = len(value)
540 else:
541 length = 1
542 if required is not None :
543 if required and length < 1:
544 self.gds_collector_.add_message(
545 "Required value {}{} is missing".format(
547 if length < min_occurs:
548 self.gds_collector_.add_message(
549 "Number of values for {}{} is below "
550 "the minimum allowed, "
551 "expected at least {}, found {}".format(
553 min_occurs, length))
554 elif length > max_occurs:
555 self.gds_collector_.add_message(
556 "Number of values for {}{} is above "
557 "the maximum allowed, "
558 "expected at most {}, found {}".format(
560 max_occurs, length))
562 self, validator, value, input_name,
563 min_occurs=None, max_occurs=None, required=None):
564 if value is not None:
565 try:
566 validator(value, input_name=input_name)
567 except GDSParseError as parse_error:
568 self.gds_collector_.add_message(str(parse_error))
570 self, validator, value, input_name,
571 min_occurs=None, max_occurs=None, required=None):
572 if value is not None:
573 try:
574 validator(value)
575 except GDSParseError as parse_error:
576 self.gds_collector_.add_message(str(parse_error))
577 def gds_str_lower(self, instring):
578 return instring.lower()
579 def get_path_(self, node):
580 path_list = []
581 self.get_path_list_get_path_list_(node, path_list)
582 path_list.reverse()
583 path = '/'.join(path_list)
584 return path
585 Tag_strip_pattern_ = re_.compile(r'\{.*\}')
586 def get_path_list_(self, node, path_list):
587 if node is None:
588 return
589 tag = GeneratedsSuper.Tag_strip_pattern_.sub('', node.tag)
590 if tag:
591 path_list.append(tag)
592 self.get_path_list_get_path_list_(node.getparent(), path_list)
593 def get_class_obj_(self, node, default_class=None):
594 class_obj1 = default_class
595 if 'xsi' in node.nsmap:
596 classname = node.get('{%s}type' % node.nsmap['xsi'])
597 if classname is not None:
598 names = classname.split(':')
599 if len(names) == 2:
600 classname = names[1]
601 class_obj2 = globals().get(classname)
602 if class_obj2 is not None:
603 class_obj1 = class_obj2
604 return class_obj1
605 def gds_build_any(self, node, type_name=None):
606 # provide default value in case option --disable-xml is used.
607 content = ""
608 content = etree_.tostring(node, encoding="unicode")
609 return content
610 @classmethod
611 def gds_reverse_node_mapping(cls, mapping):
612 return dict(((v, k) for k, v in mapping.items()))
613 @staticmethod
614 def gds_encode(instring):
615 if sys.version_info.major == 2:
616 if ExternalEncoding:
617 encoding = ExternalEncoding
618 else:
619 encoding = 'utf-8'
620 return instring.encode(encoding)
621 else:
622 return instring
623 @staticmethod
624 def convert_unicode(instring):
625 if isinstance(instring, str):
626 result = quote_xml(instring)
627 elif sys.version_info.major == 2 and isinstance(instring, unicode):
628 result = quote_xml(instring).encode('utf8')
629 else:
630 result = GeneratedsSuper.gds_encode(str(instring))
631 return result
632 def __eq__(self, other):
633 def excl_select_objs_(obj):
634 return (obj[0] != 'parent_object_' and
635 obj[0] != 'gds_collector_')
636 if type(self) != type(other):
637 return False
638 return all(x == y for x, y in zip_longest(
639 filter(excl_select_objs_, self.__dict__.items()),
640 filter(excl_select_objs_, other.__dict__.items())))
641 def __ne__(self, other):
642 return not self.__eq____eq__(other)
643 # Django ETL transform hooks.
645 pass
647 pass
648 # SQLAlchemy ETL transform hooks.
650 return 0, None
652 pass
654 if (hasattr(self, "gds_elementtree_node_") and
655 self.gds_elementtree_node_ is not None):
656 return ' near line {}'.format(
657 self.gds_elementtree_node_.sourceline)
658 else:
659 return ""
660
661
662 def getSubclassFromModule_(module, class_):
663 '''Get the subclass of a class from a specific module.'''
664 name = class_.__name__ + 'Sub'
665 if hasattr(module, name):
666 return getattr(module, name)
667 else:
668 return None
669
670
671#
672# If you have installed IPython you can uncomment and use the following.
673# IPython is available from http://ipython.scipy.org/.
674#
675
676# # from IPython.Shell import IPShellEmbed
677# # args = ''
678# # ipshell = IPShellEmbed(args,
679# # banner = 'Dropping into IPython',
680# # exit_msg = 'Leaving Interpreter, back to program.')
681
682# Then use the following line where and when you want to drop into the
683# IPython shell:
684# ipshell('<some message> -- Entering ipshell.\nHit Ctrl-D to exit')
685
686#
687# Globals
688#
689
690ExternalEncoding = ''
691# Set this to false in order to deactivate during export, the use of
692# name space prefixes captured from the input document.
693UseCapturedNS_ = True
694CapturedNsmap_ = {}
695Tag_pattern_ = re_.compile(r'({.*})?(.*)')
696String_cleanup_pat_ = re_.compile(r"[\n\r\s]+")
697Namespace_extract_pat_ = re_.compile(r'{(.*)}(.*)')
698CDATA_pattern_ = re_.compile(r"<!\[CDATA\[.*?\]\]>", re_.DOTALL)
699
700# Change this to redirect the generated superclass module to use a
701# specific subclass module.
702CurrentSubclassModule_ = None
703
704#
705# Support/utility functions.
706#
707
708
709def showIndent(outfile, level, pretty_print=True):
710 if pretty_print:
711 for idx in range(level):
712 outfile.write(' ')
713
714
715def quote_xml(inStr):
716 "Escape markup chars, but do not modify CDATA sections."
717 if not inStr:
718 return ''
719 s1 = (isinstance(inStr, BaseStrType_) and inStr or '%s' % inStr)
720 s2 = ''
721 pos = 0
722 matchobjects = CDATA_pattern_.finditer(s1)
723 for mo in matchobjects:
724 s3 = s1[pos:mo.start()]
725 s2 += quote_xml_aux(s3)
726 s2 += s1[mo.start():mo.end()]
727 pos = mo.end()
728 s3 = s1[pos:]
729 s2 += quote_xml_aux(s3)
730 return s2
731
732
733def quote_xml_aux(inStr):
734 s1 = inStr.replace('&', '&amp;')
735 s1 = s1.replace('<', '&lt;')
736 s1 = s1.replace('>', '&gt;')
737 return s1
738
739
740def quote_attrib(inStr):
741 s1 = (isinstance(inStr, BaseStrType_) and inStr or '%s' % inStr)
742 s1 = s1.replace('&', '&amp;')
743 s1 = s1.replace('<', '&lt;')
744 s1 = s1.replace('>', '&gt;')
745 if '"' in s1:
746 if "'" in s1:
747 s1 = '"%s"' % s1.replace('"', "&quot;")
748 else:
749 s1 = "'%s'" % s1
750 else:
751 s1 = '"%s"' % s1
752 return s1
753
754
755def quote_python(inStr):
756 s1 = inStr
757 if s1.find("'") == -1:
758 if s1.find('\n') == -1:
759 return "'%s'" % s1
760 else:
761 return "'''%s'''" % s1
762 else:
763 if s1.find('"') != -1:
764 s1 = s1.replace('"', '\\"')
765 if s1.find('\n') == -1:
766 return '"%s"' % s1
767 else:
768 return '"""%s"""' % s1
769
770
771def get_all_text_(node):
772 if node.text is not None:
773 text = node.text
774 else:
775 text = ''
776 for child in node:
777 if child.tail is not None:
778 text += child.tail
779 return text
780
781
782def find_attr_value_(attr_name, node):
783 attrs = node.attrib
784 attr_parts = attr_name.split(':')
785 value = None
786 if len(attr_parts) == 1:
787 value = attrs.get(attr_name)
788 elif len(attr_parts) == 2:
789 prefix, name = attr_parts
790 if prefix == 'xml':
791 namespace = 'http://www.w3.org/XML/1998/namespace'
792 else:
793 namespace = node.nsmap.get(prefix)
794 if namespace is not None:
795 value = attrs.get('{%s}%s' % (namespace, name, ))
796 return value
797
798
799def encode_str_2_3(instr):
800 return instr
801
802
803class GDSParseError(Exception):
804 pass
805
806
807def raise_parse_error(node, msg):
808 if node is not None:
809 msg = '%s (element %s/line %d)' % (msg, node.tag, node.sourceline, )
810 raise GDSParseError(msg)
811
812
813class MixedContainer:
814 # Constants for category:
815 CategoryNone = 0
816 CategoryText = 1
817 CategorySimple = 2
818 CategoryComplex = 3
819 # Constants for content_type:
820 TypeNone = 0
821 TypeText = 1
822 TypeString = 2
823 TypeInteger = 3
824 TypeFloat = 4
825 TypeDecimal = 5
826 TypeDouble = 6
827 TypeBoolean = 7
828 TypeBase64 = 8
829 def __init__(self, category, content_type, name, value):
830 self.category = category
831 self.content_type = content_type
832 self.name = name
833 self.value = value
834 def getCategory(self):
835 return self.category
836 def getContenttype(self, content_type):
837 return self.content_type
838 def getValue(self):
839 return self.value
840 def getName(self):
841 return self.name
842 def export(self, outfile, level, name, namespace,
843 pretty_print=True):
844 if self.category == MixedContainer.CategoryText:
845 # Prevent exporting empty content as empty lines.
846 if self.value.strip():
847 outfile.write(self.value)
848 elif self.category == MixedContainer.CategorySimple:
849 self.exportSimpleexportSimple(outfile, level, name)
850 else: # category == MixedContainer.CategoryComplex
851 self.value.export(
852 outfile, level, namespace, name_=name,
853 pretty_print=pretty_print)
854 def exportSimple(self, outfile, level, name):
855 if self.content_type == MixedContainer.TypeString:
856 outfile.write('<%s>%s</%s>' % (
857 self.name, self.value, self.name))
858 elif self.content_type == MixedContainer.TypeInteger or \
859 self.content_type == MixedContainer.TypeBoolean:
860 outfile.write('<%s>%d</%s>' % (
861 self.name, self.value, self.name))
862 elif self.content_type == MixedContainer.TypeFloat or \
863 self.content_type == MixedContainer.TypeDecimal:
864 outfile.write('<%s>%f</%s>' % (
865 self.name, self.value, self.name))
866 elif self.content_type == MixedContainer.TypeDouble:
867 outfile.write('<%s>%g</%s>' % (
868 self.name, self.value, self.name))
869 elif self.content_type == MixedContainer.TypeBase64:
870 outfile.write('<%s>%s</%s>' % (
871 self.name,
872 base64.b64encode(self.value),
873 self.name))
874 def to_etree(self, element, mapping_=None, nsmap_=None):
875 if self.category == MixedContainer.CategoryText:
876 # Prevent exporting empty content as empty lines.
877 if self.value.strip():
878 if len(element) > 0:
879 if element[-1].tail is None:
880 element[-1].tail = self.value
881 else:
882 element[-1].tail += self.value
883 else:
884 if element.text is None:
885 element.text = self.value
886 else:
887 element.text += self.value
888 elif self.category == MixedContainer.CategorySimple:
889 subelement = etree_.SubElement(
890 element, '%s' % self.name)
891 subelement.text = self.to_etree_simpleto_etree_simple()
892 else: # category == MixedContainer.CategoryComplex
893 self.value.to_etree(element)
894 def to_etree_simple(self, mapping_=None, nsmap_=None):
895 if self.content_type == MixedContainer.TypeString:
896 text = self.value
897 elif (self.content_type == MixedContainer.TypeInteger or
898 self.content_type == MixedContainer.TypeBoolean):
899 text = '%d' % self.value
900 elif (self.content_type == MixedContainer.TypeFloat or
901 self.content_type == MixedContainer.TypeDecimal):
902 text = '%f' % self.value
903 elif self.content_type == MixedContainer.TypeDouble:
904 text = '%g' % self.value
905 elif self.content_type == MixedContainer.TypeBase64:
906 text = '%s' % base64.b64encode(self.value)
907 return text
908 def exportLiteral(self, outfile, level, name):
909 if self.category == MixedContainer.CategoryText:
910 showIndent(outfile, level)
911 outfile.write(
912 'model_.MixedContainer(%d, %d, "%s", "%s"),\n' % (
913 self.category, self.content_type,
914 self.name, self.value))
915 elif self.category == MixedContainer.CategorySimple:
916 showIndent(outfile, level)
917 outfile.write(
918 'model_.MixedContainer(%d, %d, "%s", "%s"),\n' % (
919 self.category, self.content_type,
920 self.name, self.value))
921 else: # category == MixedContainer.CategoryComplex
922 showIndent(outfile, level)
923 outfile.write(
924 'model_.MixedContainer(%d, %d, "%s",\n' % (
925 self.category, self.content_type, self.name,))
926 self.value.exportLiteral(outfile, level + 1)
927 showIndent(outfile, level)
928 outfile.write(')\n')
929
930
931class MemberSpec_(object):
932 def __init__(self, name='', data_type='', container=0,
933 optional=0, child_attrs=None, choice=None):
934 self.name = name
935 self.data_type = data_type
936 self.container = container
937 self.child_attrs = child_attrs
938 self.choice = choice
939 self.optional = optional
940 def set_name(self, name): self.name = name
941 def get_name(self): return self.name
942 def set_data_type(self, data_type): self.data_type = data_type
943 def get_data_type_chain(self): return self.data_type
944 def get_data_type(self):
945 if isinstance(self.data_type, list):
946 if len(self.data_type) > 0:
947 return self.data_type[-1]
948 else:
949 return 'xs:string'
950 else:
951 return self.data_type
952 def set_container(self, container): self.container = container
953 def get_container(self): return self.container
954 def set_child_attrs(self, child_attrs): self.child_attrs = child_attrs
955 def get_child_attrs(self): return self.child_attrs
956 def set_choice(self, choice): self.choice = choice
957 def get_choice(self): return self.choice
958 def set_optional(self, optional): self.optional = optional
959 def get_optional(self): return self.optional
960
961
962def _cast(typ, value):
963 if typ is None or value is None:
964 return value
965 return typ(value)
966
967#
968# Data representation classes.
969#
970
971
972class DoxAccessor(str, Enum):
973 RETAIN='retain'
974 COPY='copy'
975 ASSIGN='assign'
976 WEAK='weak'
977 STRONG='strong'
978 UNRETAINED='unretained'
979
980
981class DoxAlign(str, Enum):
982 LEFT='left'
983 RIGHT='right'
984 CENTER='center'
985
986
987class DoxBool(str, Enum):
988 YES='yes'
989 NO='no'
990
991
992class DoxCompoundKind(str, Enum):
993 CLASS='class'
994 STRUCT='struct'
995 UNION='union'
996 INTERFACE='interface'
997 PROTOCOL='protocol'
998 CATEGORY='category'
999 EXCEPTION='exception'
1000 SERVICE='service'
1001 SINGLETON='singleton'
1002 MODULE='module'
1003 TYPE='type'
1004 FILE='file'
1005 NAMESPACE='namespace'
1006 GROUP='group'
1007 PAGE='page'
1008 EXAMPLE='example'
1009 DIR='dir'
1010 CONCEPT='concept'
1011
1012
1013class DoxGraphRelation(str, Enum):
1014 INCLUDE='include'
1015 USAGE='usage'
1016 TEMPLATEINSTANCE='template-instance'
1017 PUBLICINHERITANCE='public-inheritance'
1018 PROTECTEDINHERITANCE='protected-inheritance'
1019 PRIVATEINHERITANCE='private-inheritance'
1020 TYPECONSTRAINT='type-constraint'
1021
1022
1023class DoxHighlightClass(str, Enum):
1024 COMMENT='comment'
1025 NORMAL='normal'
1026 PREPROCESSOR='preprocessor'
1027 KEYWORD='keyword'
1028 KEYWORDTYPE='keywordtype'
1029 KEYWORDFLOW='keywordflow'
1030 STRINGLITERAL='stringliteral'
1031 CHARLITERAL='charliteral'
1032 VHDLKEYWORD='vhdlkeyword'
1033 VHDLLOGIC='vhdllogic'
1034 VHDLCHAR='vhdlchar'
1035 VHDLDIGIT='vhdldigit'
1036
1037
1038class DoxImageKind(str, Enum):
1039 HTML='html'
1040 LATEX='latex'
1041 DOCBOOK='docbook'
1042 RTF='rtf'
1043 XML='xml'
1044
1045
1046class DoxLanguage(str, Enum):
1047 UNKNOWN='Unknown'
1048 IDL='IDL'
1049 JAVA='Java'
1050 C='C#'
1051 D='D'
1052 PHP='PHP'
1053 OBJECTIVEC='Objective-C'
1054 C_1='C++'
1055 JAVA_SCRIPT='JavaScript'
1056 PYTHON='Python'
1057 FORTRAN='Fortran'
1058 VHDL='VHDL'
1059 XML='XML'
1060 SQL='SQL'
1061 MARKDOWN='Markdown'
1062 SLICE='Slice'
1063 LEX='Lex'
1064
1065
1066class DoxMemberKind(str, Enum):
1067 DEFINE='define'
1068 PROPERTY='property'
1069 EVENT='event'
1070 VARIABLE='variable'
1071 TYPEDEF='typedef'
1072 ENUM='enum'
1073 FUNCTION='function'
1074 SIGNAL='signal'
1075 PROTOTYPE='prototype'
1076 FRIEND='friend'
1077 DCOP='dcop'
1078 SLOT='slot'
1079 INTERFACE='interface'
1080 SERVICE='service'
1081
1082
1083class DoxOlType(str, Enum):
1084 _1='1'
1085 A='a'
1086 A_1='A'
1087 I='i'
1088 I_1='I'
1089
1090
1091class DoxParamDir(str, Enum):
1092 IN='in'
1093 OUT='out'
1094 INOUT='inout'
1095
1096
1097class DoxParamListKind(str, Enum):
1098 PARAM='param'
1099 RETVAL='retval'
1100 EXCEPTION='exception'
1101 TEMPLATEPARAM='templateparam'
1102
1103
1104class DoxPlantumlEngine(str, Enum):
1105 UML='uml'
1106 BPM='bpm'
1107 WIRE='wire'
1108 DOT='dot'
1109 DITAA='ditaa'
1110 SALT='salt'
1111 MATH='math'
1112 LATEX='latex'
1113 GANTT='gantt'
1114 MINDMAP='mindmap'
1115 WBS='wbs'
1116 YAML='yaml'
1117 CREOLE='creole'
1118 JSON='json'
1119 FLOW='flow'
1120 BOARD='board'
1121 GIT='git'
1122
1123
1124class DoxProtectionKind(str, Enum):
1125 PUBLIC='public'
1126 PROTECTED='protected'
1127 PRIVATE='private'
1128 PACKAGE='package'
1129
1130
1131class DoxRefKind(str, Enum):
1132 COMPOUND='compound'
1133 MEMBER='member'
1134
1135
1136class DoxRefQualifierKind(str, Enum):
1137 LVALUE='lvalue'
1138 RVALUE='rvalue'
1139
1140
1141class DoxSectionKind(str, Enum):
1142 USERDEFINED='user-defined'
1143 PUBLICTYPE='public-type'
1144 PUBLICFUNC='public-func'
1145 PUBLICATTRIB='public-attrib'
1146 PUBLICSLOT='public-slot'
1147 SIGNAL='signal'
1148 DCOPFUNC='dcop-func'
1149 PROPERTY='property'
1150 EVENT='event'
1151 PUBLICSTATICFUNC='public-static-func'
1152 PUBLICSTATICATTRIB='public-static-attrib'
1153 PROTECTEDTYPE='protected-type'
1154 PROTECTEDFUNC='protected-func'
1155 PROTECTEDATTRIB='protected-attrib'
1156 PROTECTEDSLOT='protected-slot'
1157 PROTECTEDSTATICFUNC='protected-static-func'
1158 PROTECTEDSTATICATTRIB='protected-static-attrib'
1159 PACKAGETYPE='package-type'
1160 PACKAGEFUNC='package-func'
1161 PACKAGEATTRIB='package-attrib'
1162 PACKAGESTATICFUNC='package-static-func'
1163 PACKAGESTATICATTRIB='package-static-attrib'
1164 PRIVATETYPE='private-type'
1165 PRIVATEFUNC='private-func'
1166 PRIVATEATTRIB='private-attrib'
1167 PRIVATESLOT='private-slot'
1168 PRIVATESTATICFUNC='private-static-func'
1169 PRIVATESTATICATTRIB='private-static-attrib'
1170 FRIEND='friend'
1171 RELATED='related'
1172 DEFINE='define'
1173 PROTOTYPE='prototype'
1174 TYPEDEF='typedef'
1175 ENUM='enum'
1176 FUNC='func'
1177 VAR='var'
1178
1179
1180class DoxSimpleSectKind(str, Enum):
1181 SEE='see'
1182 RETURN='return'
1183 AUTHOR='author'
1184 AUTHORS='authors'
1185 VERSION='version'
1186 SINCE='since'
1187 DATE='date'
1188 NOTE='note'
1189 WARNING='warning'
1190 PRE='pre'
1191 POST='post'
1192 COPYRIGHT='copyright'
1193 INVARIANT='invariant'
1194 REMARK='remark'
1195 ATTENTION='attention'
1196 PAR='par'
1197 RCS='rcs'
1198
1199
1200class DoxVerticalAlign(str, Enum):
1201 BOTTOM='bottom'
1202 TOP='top'
1203 MIDDLE='middle'
1204
1205
1206class DoxVirtualKind(str, Enum):
1207 NONVIRTUAL='non-virtual'
1208 VIRTUAL='virtual'
1209 PUREVIRTUAL='pure-virtual'
1210
1211
1213 __hash__ = GeneratedsSuper.__hash__
1214 subclass = None
1215 superclass = None
1216 def __init__(self, version=None, lang=None, compounddef=None, gds_collector_=None, **kwargs_):
1217 self.gds_collector_ = gds_collector_
1218 self.gds_elementtree_node_ = None
1219 self.original_tagname_ = None
1220 self.parent_object_ = kwargs_.get('parent_object_')
1221 self.ns_prefix_ = None
1222 self.version = _cast(None, version)
1223 self.version_nsprefix_ = None
1224 self.lang = _cast(None, lang)
1225 self.lang_nsprefix_ = None
1226 if compounddef is None:
1227 self.compounddef = []
1228 else:
1229 self.compounddef = compounddef
1230 self.compounddef_nsprefix_ = None
1231 def factory(*args_, **kwargs_):
1232 if CurrentSubclassModule_ is not None:
1233 subclass = getSubclassFromModule_(
1234 CurrentSubclassModule_, DoxygenType)
1235 if subclass is not None:
1236 return subclass(*args_, **kwargs_)
1237 if DoxygenType.subclass:
1238 return DoxygenType.subclass(*args_, **kwargs_)
1239 else:
1240 return DoxygenType(*args_, **kwargs_)
1241 factory = staticmethod(factory)
1243 return self.ns_prefix_
1244 def set_ns_prefix_(self, ns_prefix):
1245 self.ns_prefix_ = ns_prefix
1247 return self.compounddef
1248 def set_compounddef(self, compounddef):
1249 self.compounddef = compounddef
1250 def add_compounddef(self, value):
1251 self.compounddef.append(value)
1252 def insert_compounddef_at(self, index, value):
1253 self.compounddef.insert(index, value)
1254 def replace_compounddef_at(self, index, value):
1255 self.compounddef[index] = value
1256 def get_version(self):
1257 return self.version
1258 def set_version(self, version):
1259 self.version = version
1260 def get_lang(self):
1261 return self.lang
1262 def set_lang(self, lang):
1263 self.lang = lang
1265 # Validate type DoxVersionNumber, a restriction on xsd:string.
1266 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
1267 if not isinstance(value, str):
1269 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
1270 return False
1273 self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_DoxVersionNumber_patterns_, ))
1274 validate_DoxVersionNumber_patterns_ = [['^(\\d+\\.\\d+.*)$']]
1275 def hasContent_(self):
1276 if (
1277 self.compounddef
1278 ):
1279 return True
1280 else:
1281 return False
1282 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DoxygenType', pretty_print=True):
1283 imported_ns_def_ = GenerateDSNamespaceDefs_.get('DoxygenType')
1284 if imported_ns_def_ is not None:
1285 namespacedef_ = imported_ns_def_
1286 if pretty_print:
1287 eol_ = '\n'
1288 else:
1289 eol_ = ''
1290 if self.original_tagname_ is not None and name_ == 'DoxygenType':
1291 name_ = self.original_tagname_
1292 if UseCapturedNS_ and self.ns_prefix_:
1293 namespaceprefix_ = self.ns_prefix_ + ':'
1294 showIndent(outfile, level, pretty_print)
1295 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
1296 already_processed = set()
1297 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DoxygenType')
1298 if self.hasContent_hasContent_():
1299 outfile.write('>%s' % (eol_, ))
1300 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='DoxygenType', pretty_print=pretty_print)
1301 showIndent(outfile, level, pretty_print)
1302 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
1303 else:
1304 outfile.write('/>%s' % (eol_, ))
1305 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DoxygenType'):
1306 if self.version is not None and 'version' not in already_processed:
1307 already_processed.add('version')
1308 outfile.write(' version=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.version), input_name='version')), ))
1309 if self.lang is not None and 'lang' not in already_processed:
1310 already_processed.add('lang')
1311 outfile.write(' xml:lang=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.lang), input_name='lang')), ))
1312 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DoxygenType', fromsubclass_=False, pretty_print=True):
1313 if pretty_print:
1314 eol_ = '\n'
1315 else:
1316 eol_ = ''
1317 for compounddef_ in self.compounddef:
1318 namespaceprefix_ = self.compounddef_nsprefix_ + ':' if (UseCapturedNS_ and self.compounddef_nsprefix_) else ''
1319 compounddef_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='compounddef', pretty_print=pretty_print)
1320 def build(self, node, gds_collector_=None):
1321 self.gds_collector_ = gds_collector_
1322 if SaveElementTreeNode:
1323 self.gds_elementtree_node_ = node
1324 already_processed = set()
1325 self.ns_prefix_ = node.prefix
1326 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
1327 for child in node:
1328 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
1329 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
1330 return self
1331 def buildAttributes(self, node, attrs, already_processed):
1332 value = find_attr_value_('version', node)
1333 if value is not None and 'version' not in already_processed:
1334 already_processed.add('version')
1335 self.version = value
1336 self.validate_DoxVersionNumbervalidate_DoxVersionNumber(self.version) # validate type DoxVersionNumber
1337 value = find_attr_value_('lang', node)
1338 if value is not None and 'lang' not in already_processed:
1339 already_processed.add('lang')
1340 self.lang = value
1341 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
1342 if nodeName_ == 'compounddef':
1343 obj_ = compounddefType.factory(parent_object_=self)
1344 obj_.build(child_, gds_collector_=gds_collector_)
1345 self.compounddef.append(obj_)
1346 obj_.original_tagname_ = 'compounddef'
1347# end class DoxygenType
1348
1349
1351 __hash__ = GeneratedsSuper.__hash__
1352 subclass = None
1353 superclass = None
1354 def __init__(self, id=None, kind=None, language=None, prot=None, final=None, inline=None, sealed=None, abstract=None, compoundname=None, title=None, basecompoundref=None, derivedcompoundref=None, includes=None, includedby=None, incdepgraph=None, invincdepgraph=None, innerdir=None, innerfile=None, innerclass=None, innerconcept=None, innernamespace=None, innerpage=None, innergroup=None, templateparamlist=None, sectiondef=None, tableofcontents=None, requiresclause=None, initializer=None, briefdescription=None, detaileddescription=None, inheritancegraph=None, collaborationgraph=None, programlisting=None, location=None, listofallmembers=None, gds_collector_=None, **kwargs_):
1355 self.gds_collector_ = gds_collector_
1356 self.gds_elementtree_node_ = None
1357 self.original_tagname_ = None
1358 self.parent_object_ = kwargs_.get('parent_object_')
1359 self.ns_prefix_ = None
1360 self.id = _cast(None, id)
1361 self.id_nsprefix_ = None
1362 self.kind = _cast(None, kind)
1363 self.kind_nsprefix_ = None
1364 self.language = _cast(None, language)
1365 self.language_nsprefix_ = None
1366 self.prot = _cast(None, prot)
1367 self.prot_nsprefix_ = None
1368 self.final = _cast(None, final)
1369 self.final_nsprefix_ = None
1370 self.inline = _cast(None, inline)
1371 self.inline_nsprefix_ = None
1372 self.sealed = _cast(None, sealed)
1373 self.sealed_nsprefix_ = None
1374 self.abstract = _cast(None, abstract)
1375 self.abstract_nsprefix_ = None
1376 self.compoundname = compoundname
1377 self.compoundname_nsprefix_ = None
1378 self.title = title
1379 self.title_nsprefix_ = None
1380 if basecompoundref is None:
1381 self.basecompoundref = []
1382 else:
1383 self.basecompoundref = basecompoundref
1384 self.basecompoundref_nsprefix_ = None
1385 if derivedcompoundref is None:
1386 self.derivedcompoundref = []
1387 else:
1388 self.derivedcompoundref = derivedcompoundref
1390 if includes is None:
1391 self.includes = []
1392 else:
1393 self.includes = includes
1394 self.includes_nsprefix_ = None
1395 if includedby is None:
1396 self.includedby = []
1397 else:
1398 self.includedby = includedby
1399 self.includedby_nsprefix_ = None
1400 self.incdepgraph = incdepgraph
1401 self.incdepgraph_nsprefix_ = None
1402 self.invincdepgraph = invincdepgraph
1403 self.invincdepgraph_nsprefix_ = None
1404 if innerdir is None:
1405 self.innerdir = []
1406 else:
1407 self.innerdir = innerdir
1408 self.innerdir_nsprefix_ = None
1409 if innerfile is None:
1410 self.innerfile = []
1411 else:
1412 self.innerfile = innerfile
1413 self.innerfile_nsprefix_ = None
1414 if innerclass is None:
1415 self.innerclass = []
1416 else:
1417 self.innerclass = innerclass
1418 self.innerclass_nsprefix_ = None
1419 if innerconcept is None:
1420 self.innerconcept = []
1421 else:
1422 self.innerconcept = innerconcept
1423 self.innerconcept_nsprefix_ = None
1424 if innernamespace is None:
1425 self.innernamespace = []
1426 else:
1427 self.innernamespace = innernamespace
1428 self.innernamespace_nsprefix_ = None
1429 if innerpage is None:
1430 self.innerpage = []
1431 else:
1432 self.innerpage = innerpage
1433 self.innerpage_nsprefix_ = None
1434 if innergroup is None:
1435 self.innergroup = []
1436 else:
1437 self.innergroup = innergroup
1438 self.innergroup_nsprefix_ = None
1439 self.templateparamlist = templateparamlist
1440 self.templateparamlist_nsprefix_ = None
1441 if sectiondef is None:
1442 self.sectiondef = []
1443 else:
1444 self.sectiondef = sectiondef
1445 self.sectiondef_nsprefix_ = None
1446 self.tableofcontents = tableofcontents
1447 self.tableofcontents_nsprefix_ = None
1448 self.requiresclause = requiresclause
1449 self.requiresclause_nsprefix_ = None
1450 self.initializer = initializer
1451 self.initializer_nsprefix_ = None
1452 self.briefdescription = briefdescription
1453 self.briefdescription_nsprefix_ = None
1454 self.detaileddescription = detaileddescription
1456 self.inheritancegraph = inheritancegraph
1457 self.inheritancegraph_nsprefix_ = None
1458 self.collaborationgraph = collaborationgraph
1460 self.programlisting = programlisting
1461 self.programlisting_nsprefix_ = None
1462 self.location = location
1463 self.location_nsprefix_ = None
1464 self.listofallmembers = listofallmembers
1465 self.listofallmembers_nsprefix_ = None
1466 def factory(*args_, **kwargs_):
1467 if CurrentSubclassModule_ is not None:
1468 subclass = getSubclassFromModule_(
1469 CurrentSubclassModule_, compounddefType)
1470 if subclass is not None:
1471 return subclass(*args_, **kwargs_)
1472 if compounddefType.subclass:
1473 return compounddefType.subclass(*args_, **kwargs_)
1474 else:
1475 return compounddefType(*args_, **kwargs_)
1476 factory = staticmethod(factory)
1478 return self.ns_prefix_
1479 def set_ns_prefix_(self, ns_prefix):
1480 self.ns_prefix_ = ns_prefix
1482 return self.compoundname
1483 def set_compoundname(self, compoundname):
1484 self.compoundname = compoundname
1485 def get_title(self):
1486 return self.title
1487 def set_title(self, title):
1488 self.title = title
1490 return self.basecompoundref
1491 def set_basecompoundref(self, basecompoundref):
1492 self.basecompoundref = basecompoundref
1493 def add_basecompoundref(self, value):
1494 self.basecompoundref.append(value)
1495 def insert_basecompoundref_at(self, index, value):
1496 self.basecompoundref.insert(index, value)
1497 def replace_basecompoundref_at(self, index, value):
1498 self.basecompoundref[index] = value
1500 return self.derivedcompoundref
1501 def set_derivedcompoundref(self, derivedcompoundref):
1502 self.derivedcompoundref = derivedcompoundref
1503 def add_derivedcompoundref(self, value):
1504 self.derivedcompoundref.append(value)
1505 def insert_derivedcompoundref_at(self, index, value):
1506 self.derivedcompoundref.insert(index, value)
1507 def replace_derivedcompoundref_at(self, index, value):
1508 self.derivedcompoundref[index] = value
1509 def get_includes(self):
1510 return self.includes
1511 def set_includes(self, includes):
1512 self.includes = includes
1513 def add_includes(self, value):
1514 self.includes.append(value)
1515 def insert_includes_at(self, index, value):
1516 self.includes.insert(index, value)
1517 def replace_includes_at(self, index, value):
1518 self.includes[index] = value
1520 return self.includedby
1521 def set_includedby(self, includedby):
1522 self.includedby = includedby
1523 def add_includedby(self, value):
1524 self.includedby.append(value)
1525 def insert_includedby_at(self, index, value):
1526 self.includedby.insert(index, value)
1527 def replace_includedby_at(self, index, value):
1528 self.includedby[index] = value
1530 return self.incdepgraph
1531 def set_incdepgraph(self, incdepgraph):
1532 self.incdepgraph = incdepgraph
1534 return self.invincdepgraph
1535 def set_invincdepgraph(self, invincdepgraph):
1536 self.invincdepgraph = invincdepgraph
1537 def get_innerdir(self):
1538 return self.innerdir
1539 def set_innerdir(self, innerdir):
1540 self.innerdir = innerdir
1541 def add_innerdir(self, value):
1542 self.innerdir.append(value)
1543 def insert_innerdir_at(self, index, value):
1544 self.innerdir.insert(index, value)
1545 def replace_innerdir_at(self, index, value):
1546 self.innerdir[index] = value
1547 def get_innerfile(self):
1548 return self.innerfile
1549 def set_innerfile(self, innerfile):
1550 self.innerfile = innerfile
1551 def add_innerfile(self, value):
1552 self.innerfile.append(value)
1553 def insert_innerfile_at(self, index, value):
1554 self.innerfile.insert(index, value)
1555 def replace_innerfile_at(self, index, value):
1556 self.innerfile[index] = value
1558 return self.innerclass
1559 def set_innerclass(self, innerclass):
1560 self.innerclass = innerclass
1561 def add_innerclass(self, value):
1562 self.innerclass.append(value)
1563 def insert_innerclass_at(self, index, value):
1564 self.innerclass.insert(index, value)
1565 def replace_innerclass_at(self, index, value):
1566 self.innerclass[index] = value
1568 return self.innerconcept
1569 def set_innerconcept(self, innerconcept):
1570 self.innerconcept = innerconcept
1571 def add_innerconcept(self, value):
1572 self.innerconcept.append(value)
1573 def insert_innerconcept_at(self, index, value):
1574 self.innerconcept.insert(index, value)
1575 def replace_innerconcept_at(self, index, value):
1576 self.innerconcept[index] = value
1578 return self.innernamespace
1579 def set_innernamespace(self, innernamespace):
1580 self.innernamespace = innernamespace
1581 def add_innernamespace(self, value):
1582 self.innernamespace.append(value)
1583 def insert_innernamespace_at(self, index, value):
1584 self.innernamespace.insert(index, value)
1585 def replace_innernamespace_at(self, index, value):
1586 self.innernamespace[index] = value
1587 def get_innerpage(self):
1588 return self.innerpage
1589 def set_innerpage(self, innerpage):
1590 self.innerpage = innerpage
1591 def add_innerpage(self, value):
1592 self.innerpage.append(value)
1593 def insert_innerpage_at(self, index, value):
1594 self.innerpage.insert(index, value)
1595 def replace_innerpage_at(self, index, value):
1596 self.innerpage[index] = value
1598 return self.innergroup
1599 def set_innergroup(self, innergroup):
1600 self.innergroup = innergroup
1601 def add_innergroup(self, value):
1602 self.innergroup.append(value)
1603 def insert_innergroup_at(self, index, value):
1604 self.innergroup.insert(index, value)
1605 def replace_innergroup_at(self, index, value):
1606 self.innergroup[index] = value
1608 return self.templateparamlist
1609 def set_templateparamlist(self, templateparamlist):
1610 self.templateparamlist = templateparamlist
1612 return self.sectiondef
1613 def set_sectiondef(self, sectiondef):
1614 self.sectiondef = sectiondef
1615 def add_sectiondef(self, value):
1616 self.sectiondef.append(value)
1617 def insert_sectiondef_at(self, index, value):
1618 self.sectiondef.insert(index, value)
1619 def replace_sectiondef_at(self, index, value):
1620 self.sectiondef[index] = value
1622 return self.tableofcontents
1623 def set_tableofcontents(self, tableofcontents):
1624 self.tableofcontents = tableofcontents
1626 return self.requiresclause
1627 def set_requiresclause(self, requiresclause):
1628 self.requiresclause = requiresclause
1630 return self.initializer
1631 def set_initializer(self, initializer):
1632 self.initializer = initializer
1634 return self.briefdescription
1635 def set_briefdescription(self, briefdescription):
1636 self.briefdescription = briefdescription
1638 return self.detaileddescription
1639 def set_detaileddescription(self, detaileddescription):
1640 self.detaileddescription = detaileddescription
1642 return self.inheritancegraph
1643 def set_inheritancegraph(self, inheritancegraph):
1644 self.inheritancegraph = inheritancegraph
1646 return self.collaborationgraph
1647 def set_collaborationgraph(self, collaborationgraph):
1648 self.collaborationgraph = collaborationgraph
1650 return self.programlisting
1651 def set_programlisting(self, programlisting):
1652 self.programlisting = programlisting
1653 def get_location(self):
1654 return self.location
1655 def set_location(self, location):
1656 self.location = location
1658 return self.listofallmembers
1659 def set_listofallmembers(self, listofallmembers):
1660 self.listofallmembers = listofallmembers
1661 def get_id(self):
1662 return self.id
1663 def set_id(self, id):
1664 self.id = id
1665 def get_kind(self):
1666 return self.kind
1667 def set_kind(self, kind):
1668 self.kind = kind
1669 def get_language(self):
1670 return self.language
1671 def set_language(self, language):
1672 self.language = language
1673 def get_prot(self):
1674 return self.prot
1675 def set_prot(self, prot):
1676 self.prot = prot
1677 def get_final(self):
1678 return self.final
1679 def set_final(self, final):
1680 self.final = final
1681 def get_inline(self):
1682 return self.inline
1683 def set_inline(self, inline):
1684 self.inline = inline
1685 def get_sealed(self):
1686 return self.sealed
1687 def set_sealed(self, sealed):
1688 self.sealed = sealed
1689 def get_abstract(self):
1690 return self.abstract
1691 def set_abstract(self, abstract):
1692 self.abstract = abstract
1694 # Validate type DoxCompoundKind, a restriction on xsd:string.
1695 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
1696 if not isinstance(value, str):
1698 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
1699 return False
1700 value = value
1701 enumerations = ['class', 'struct', 'union', 'interface', 'protocol', 'category', 'exception', 'service', 'singleton', 'module', 'type', 'file', 'namespace', 'group', 'page', 'example', 'dir', 'concept']
1702 if value not in enumerations:
1704 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxCompoundKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
1705 result = False
1706 def validate_DoxLanguage(self, value):
1707 # Validate type DoxLanguage, a restriction on xsd:string.
1708 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
1709 if not isinstance(value, str):
1711 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
1712 return False
1713 value = value
1714 enumerations = ['Unknown', 'IDL', 'Java', 'C#', 'D', 'PHP', 'Objective-C', 'C++', 'JavaScript', 'Python', 'Fortran', 'VHDL', 'XML', 'SQL', 'Markdown', 'Slice', 'Lex']
1715 if value not in enumerations:
1717 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxLanguage' % {"value" : encode_str_2_3(value), "lineno": lineno} )
1718 result = False
1720 # Validate type DoxProtectionKind, a restriction on xsd:string.
1721 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
1722 if not isinstance(value, str):
1724 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
1725 return False
1726 value = value
1727 enumerations = ['public', 'protected', 'private', 'package']
1728 if value not in enumerations:
1730 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxProtectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
1731 result = False
1732 def validate_DoxBool(self, value):
1733 # Validate type DoxBool, a restriction on xsd:string.
1734 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
1735 if not isinstance(value, str):
1737 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
1738 return False
1739 value = value
1740 enumerations = ['yes', 'no']
1741 if value not in enumerations:
1743 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
1744 result = False
1745 def hasContent_(self):
1746 if (
1747 self.compoundname is not None or
1748 self.title is not None or
1749 self.basecompoundref or
1750 self.derivedcompoundref or
1751 self.includes or
1752 self.includedby or
1753 self.incdepgraph is not None or
1754 self.invincdepgraph is not None or
1755 self.innerdir or
1756 self.innerfile or
1757 self.innerclass or
1758 self.innerconcept or
1759 self.innernamespace or
1760 self.innerpage or
1761 self.innergroup or
1762 self.templateparamlist is not None or
1763 self.sectiondef or
1764 self.tableofcontents is not None or
1765 self.requiresclause is not None or
1766 self.initializer is not None or
1767 self.briefdescription is not None or
1768 self.detaileddescription is not None or
1769 self.inheritancegraph is not None or
1770 self.collaborationgraph is not None or
1771 self.programlisting is not None or
1772 self.location is not None or
1773 self.listofallmembers is not None
1774 ):
1775 return True
1776 else:
1777 return False
1778 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compounddefType', pretty_print=True):
1779 imported_ns_def_ = GenerateDSNamespaceDefs_.get('compounddefType')
1780 if imported_ns_def_ is not None:
1781 namespacedef_ = imported_ns_def_
1782 if pretty_print:
1783 eol_ = '\n'
1784 else:
1785 eol_ = ''
1786 if self.original_tagname_ is not None and name_ == 'compounddefType':
1787 name_ = self.original_tagname_
1788 if UseCapturedNS_ and self.ns_prefix_:
1789 namespaceprefix_ = self.ns_prefix_ + ':'
1790 showIndent(outfile, level, pretty_print)
1791 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
1792 already_processed = set()
1793 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='compounddefType')
1794 if self.hasContent_hasContent_():
1795 outfile.write('>%s' % (eol_, ))
1796 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='compounddefType', pretty_print=pretty_print)
1797 showIndent(outfile, level, pretty_print)
1798 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
1799 else:
1800 outfile.write('/>%s' % (eol_, ))
1801 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='compounddefType'):
1802 if self.id is not None and 'id' not in already_processed:
1803 already_processed.add('id')
1804 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
1805 if self.kind is not None and 'kind' not in already_processed:
1806 already_processed.add('kind')
1807 outfile.write(' kind=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kind), input_name='kind')), ))
1808 if self.language is not None and 'language' not in already_processed:
1809 already_processed.add('language')
1810 outfile.write(' language=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.language), input_name='language')), ))
1811 if self.prot is not None and 'prot' not in already_processed:
1812 already_processed.add('prot')
1813 outfile.write(' prot=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.prot), input_name='prot')), ))
1814 if self.final is not None and 'final' not in already_processed:
1815 already_processed.add('final')
1816 outfile.write(' final=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.final), input_name='final')), ))
1817 if self.inline is not None and 'inline' not in already_processed:
1818 already_processed.add('inline')
1819 outfile.write(' inline=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.inline), input_name='inline')), ))
1820 if self.sealed is not None and 'sealed' not in already_processed:
1821 already_processed.add('sealed')
1822 outfile.write(' sealed=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.sealed), input_name='sealed')), ))
1823 if self.abstract is not None and 'abstract' not in already_processed:
1824 already_processed.add('abstract')
1825 outfile.write(' abstract=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.abstract), input_name='abstract')), ))
1826 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compounddefType', fromsubclass_=False, pretty_print=True):
1827 if pretty_print:
1828 eol_ = '\n'
1829 else:
1830 eol_ = ''
1831 if self.compoundname is not None:
1832 namespaceprefix_ = self.compoundname_nsprefix_ + ':' if (UseCapturedNS_ and self.compoundname_nsprefix_) else ''
1833 showIndent(outfile, level, pretty_print)
1834 outfile.write('<%scompoundname>%s</%scompoundname>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.compoundname), input_name='compoundname')), namespaceprefix_ , eol_))
1835 if self.title is not None:
1836 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
1837 showIndent(outfile, level, pretty_print)
1838 outfile.write('<%stitle>%s</%stitle>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.title), input_name='title')), namespaceprefix_ , eol_))
1839 for basecompoundref_ in self.basecompoundref:
1840 namespaceprefix_ = self.basecompoundref_nsprefix_ + ':' if (UseCapturedNS_ and self.basecompoundref_nsprefix_) else ''
1841 basecompoundref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='basecompoundref', pretty_print=pretty_print)
1842 for derivedcompoundref_ in self.derivedcompoundref:
1843 namespaceprefix_ = self.derivedcompoundref_nsprefix_ + ':' if (UseCapturedNS_ and self.derivedcompoundref_nsprefix_) else ''
1844 derivedcompoundref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='derivedcompoundref', pretty_print=pretty_print)
1845 for includes_ in self.includes:
1846 namespaceprefix_ = self.includes_nsprefix_ + ':' if (UseCapturedNS_ and self.includes_nsprefix_) else ''
1847 includes_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='includes', pretty_print=pretty_print)
1848 for includedby_ in self.includedby:
1849 namespaceprefix_ = self.includedby_nsprefix_ + ':' if (UseCapturedNS_ and self.includedby_nsprefix_) else ''
1850 includedby_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='includedby', pretty_print=pretty_print)
1851 if self.incdepgraph is not None:
1852 namespaceprefix_ = self.incdepgraph_nsprefix_ + ':' if (UseCapturedNS_ and self.incdepgraph_nsprefix_) else ''
1853 self.incdepgraph.export(outfile, level, namespaceprefix_, namespacedef_='', name_='incdepgraph', pretty_print=pretty_print)
1854 if self.invincdepgraph is not None:
1855 namespaceprefix_ = self.invincdepgraph_nsprefix_ + ':' if (UseCapturedNS_ and self.invincdepgraph_nsprefix_) else ''
1856 self.invincdepgraph.export(outfile, level, namespaceprefix_, namespacedef_='', name_='invincdepgraph', pretty_print=pretty_print)
1857 for innerdir_ in self.innerdir:
1858 namespaceprefix_ = self.innerdir_nsprefix_ + ':' if (UseCapturedNS_ and self.innerdir_nsprefix_) else ''
1859 innerdir_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innerdir', pretty_print=pretty_print)
1860 for innerfile_ in self.innerfile:
1861 namespaceprefix_ = self.innerfile_nsprefix_ + ':' if (UseCapturedNS_ and self.innerfile_nsprefix_) else ''
1862 innerfile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innerfile', pretty_print=pretty_print)
1863 for innerclass_ in self.innerclass:
1864 namespaceprefix_ = self.innerclass_nsprefix_ + ':' if (UseCapturedNS_ and self.innerclass_nsprefix_) else ''
1865 innerclass_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innerclass', pretty_print=pretty_print)
1866 for innerconcept_ in self.innerconcept:
1867 namespaceprefix_ = self.innerconcept_nsprefix_ + ':' if (UseCapturedNS_ and self.innerconcept_nsprefix_) else ''
1868 innerconcept_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innerconcept', pretty_print=pretty_print)
1869 for innernamespace_ in self.innernamespace:
1870 namespaceprefix_ = self.innernamespace_nsprefix_ + ':' if (UseCapturedNS_ and self.innernamespace_nsprefix_) else ''
1871 innernamespace_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innernamespace', pretty_print=pretty_print)
1872 for innerpage_ in self.innerpage:
1873 namespaceprefix_ = self.innerpage_nsprefix_ + ':' if (UseCapturedNS_ and self.innerpage_nsprefix_) else ''
1874 innerpage_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innerpage', pretty_print=pretty_print)
1875 for innergroup_ in self.innergroup:
1876 namespaceprefix_ = self.innergroup_nsprefix_ + ':' if (UseCapturedNS_ and self.innergroup_nsprefix_) else ''
1877 innergroup_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='innergroup', pretty_print=pretty_print)
1878 if self.templateparamlist is not None:
1879 namespaceprefix_ = self.templateparamlist_nsprefix_ + ':' if (UseCapturedNS_ and self.templateparamlist_nsprefix_) else ''
1880 self.templateparamlist.export(outfile, level, namespaceprefix_, namespacedef_='', name_='templateparamlist', pretty_print=pretty_print)
1881 for sectiondef_ in self.sectiondef:
1882 namespaceprefix_ = self.sectiondef_nsprefix_ + ':' if (UseCapturedNS_ and self.sectiondef_nsprefix_) else ''
1883 sectiondef_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sectiondef', pretty_print=pretty_print)
1884 if self.tableofcontents is not None:
1885 namespaceprefix_ = self.tableofcontents_nsprefix_ + ':' if (UseCapturedNS_ and self.tableofcontents_nsprefix_) else ''
1886 self.tableofcontents.export(outfile, level, namespaceprefix_, namespacedef_='', name_='tableofcontents', pretty_print=pretty_print)
1887 if self.requiresclause is not None:
1888 namespaceprefix_ = self.requiresclause_nsprefix_ + ':' if (UseCapturedNS_ and self.requiresclause_nsprefix_) else ''
1889 self.requiresclause.export(outfile, level, namespaceprefix_, namespacedef_='', name_='requiresclause', pretty_print=pretty_print)
1890 if self.initializer is not None:
1891 namespaceprefix_ = self.initializer_nsprefix_ + ':' if (UseCapturedNS_ and self.initializer_nsprefix_) else ''
1892 self.initializer.export(outfile, level, namespaceprefix_, namespacedef_='', name_='initializer', pretty_print=pretty_print)
1893 if self.briefdescription is not None:
1894 namespaceprefix_ = self.briefdescription_nsprefix_ + ':' if (UseCapturedNS_ and self.briefdescription_nsprefix_) else ''
1895 self.briefdescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='briefdescription', pretty_print=pretty_print)
1896 if self.detaileddescription is not None:
1897 namespaceprefix_ = self.detaileddescription_nsprefix_ + ':' if (UseCapturedNS_ and self.detaileddescription_nsprefix_) else ''
1898 self.detaileddescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='detaileddescription', pretty_print=pretty_print)
1899 if self.inheritancegraph is not None:
1900 namespaceprefix_ = self.inheritancegraph_nsprefix_ + ':' if (UseCapturedNS_ and self.inheritancegraph_nsprefix_) else ''
1901 self.inheritancegraph.export(outfile, level, namespaceprefix_, namespacedef_='', name_='inheritancegraph', pretty_print=pretty_print)
1902 if self.collaborationgraph is not None:
1903 namespaceprefix_ = self.collaborationgraph_nsprefix_ + ':' if (UseCapturedNS_ and self.collaborationgraph_nsprefix_) else ''
1904 self.collaborationgraph.export(outfile, level, namespaceprefix_, namespacedef_='', name_='collaborationgraph', pretty_print=pretty_print)
1905 if self.programlisting is not None:
1906 namespaceprefix_ = self.programlisting_nsprefix_ + ':' if (UseCapturedNS_ and self.programlisting_nsprefix_) else ''
1907 self.programlisting.export(outfile, level, namespaceprefix_, namespacedef_='', name_='programlisting', pretty_print=pretty_print)
1908 if self.location is not None:
1909 namespaceprefix_ = self.location_nsprefix_ + ':' if (UseCapturedNS_ and self.location_nsprefix_) else ''
1910 self.location.export(outfile, level, namespaceprefix_, namespacedef_='', name_='location', pretty_print=pretty_print)
1911 if self.listofallmembers is not None:
1912 namespaceprefix_ = self.listofallmembers_nsprefix_ + ':' if (UseCapturedNS_ and self.listofallmembers_nsprefix_) else ''
1913 self.listofallmembers.export(outfile, level, namespaceprefix_, namespacedef_='', name_='listofallmembers', pretty_print=pretty_print)
1914 def build(self, node, gds_collector_=None):
1915 self.gds_collector_ = gds_collector_
1916 if SaveElementTreeNode:
1917 self.gds_elementtree_node_ = node
1918 already_processed = set()
1919 self.ns_prefix_ = node.prefix
1920 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
1921 for child in node:
1922 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
1923 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
1924 return self
1925 def buildAttributes(self, node, attrs, already_processed):
1926 value = find_attr_value_('id', node)
1927 if value is not None and 'id' not in already_processed:
1928 already_processed.add('id')
1929 self.id = value
1930 value = find_attr_value_('kind', node)
1931 if value is not None and 'kind' not in already_processed:
1932 already_processed.add('kind')
1933 self.kind = value
1934 self.validate_DoxCompoundKindvalidate_DoxCompoundKind(self.kind) # validate type DoxCompoundKind
1935 value = find_attr_value_('language', node)
1936 if value is not None and 'language' not in already_processed:
1937 already_processed.add('language')
1938 self.language = value
1939 self.validate_DoxLanguagevalidate_DoxLanguage(self.language) # validate type DoxLanguage
1940 value = find_attr_value_('prot', node)
1941 if value is not None and 'prot' not in already_processed:
1942 already_processed.add('prot')
1943 self.prot = value
1944 self.validate_DoxProtectionKindvalidate_DoxProtectionKind(self.prot) # validate type DoxProtectionKind
1945 value = find_attr_value_('final', node)
1946 if value is not None and 'final' not in already_processed:
1947 already_processed.add('final')
1948 self.final = value
1949 self.validate_DoxBoolvalidate_DoxBool(self.final) # validate type DoxBool
1950 value = find_attr_value_('inline', node)
1951 if value is not None and 'inline' not in already_processed:
1952 already_processed.add('inline')
1953 self.inline = value
1954 self.validate_DoxBoolvalidate_DoxBool(self.inline) # validate type DoxBool
1955 value = find_attr_value_('sealed', node)
1956 if value is not None and 'sealed' not in already_processed:
1957 already_processed.add('sealed')
1958 self.sealed = value
1959 self.validate_DoxBoolvalidate_DoxBool(self.sealed) # validate type DoxBool
1960 value = find_attr_value_('abstract', node)
1961 if value is not None and 'abstract' not in already_processed:
1962 already_processed.add('abstract')
1963 self.abstract = value
1964 self.validate_DoxBoolvalidate_DoxBool(self.abstract) # validate type DoxBool
1965 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
1966 if nodeName_ == 'compoundname':
1967 value_ = child_.text
1968 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'compoundname')
1969 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'compoundname')
1970 self.compoundname = value_
1971 self.compoundname_nsprefix_ = child_.prefix
1972 elif nodeName_ == 'title':
1973 value_ = child_.text
1974 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'title')
1975 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'title')
1976 self.title = value_
1977 self.title_nsprefix_ = child_.prefix
1978 elif nodeName_ == 'basecompoundref':
1979 obj_ = compoundRefType.factory(parent_object_=self)
1980 obj_.build(child_, gds_collector_=gds_collector_)
1981 self.basecompoundref.append(obj_)
1982 obj_.original_tagname_ = 'basecompoundref'
1983 elif nodeName_ == 'derivedcompoundref':
1984 obj_ = compoundRefType.factory(parent_object_=self)
1985 obj_.build(child_, gds_collector_=gds_collector_)
1986 self.derivedcompoundref.append(obj_)
1987 obj_.original_tagname_ = 'derivedcompoundref'
1988 elif nodeName_ == 'includes':
1989 obj_ = incType.factory(parent_object_=self)
1990 obj_.build(child_, gds_collector_=gds_collector_)
1991 self.includes.append(obj_)
1992 obj_.original_tagname_ = 'includes'
1993 elif nodeName_ == 'includedby':
1994 obj_ = incType.factory(parent_object_=self)
1995 obj_.build(child_, gds_collector_=gds_collector_)
1996 self.includedby.append(obj_)
1997 obj_.original_tagname_ = 'includedby'
1998 elif nodeName_ == 'incdepgraph':
1999 obj_ = graphType.factory(parent_object_=self)
2000 obj_.build(child_, gds_collector_=gds_collector_)
2001 self.incdepgraph = obj_
2002 obj_.original_tagname_ = 'incdepgraph'
2003 elif nodeName_ == 'invincdepgraph':
2004 obj_ = graphType.factory(parent_object_=self)
2005 obj_.build(child_, gds_collector_=gds_collector_)
2006 self.invincdepgraph = obj_
2007 obj_.original_tagname_ = 'invincdepgraph'
2008 elif nodeName_ == 'innerdir':
2009 obj_ = refType.factory(parent_object_=self)
2010 obj_.build(child_, gds_collector_=gds_collector_)
2011 self.innerdir.append(obj_)
2012 obj_.original_tagname_ = 'innerdir'
2013 elif nodeName_ == 'innerfile':
2014 obj_ = refType.factory(parent_object_=self)
2015 obj_.build(child_, gds_collector_=gds_collector_)
2016 self.innerfile.append(obj_)
2017 obj_.original_tagname_ = 'innerfile'
2018 elif nodeName_ == 'innerclass':
2019 obj_ = refType.factory(parent_object_=self)
2020 obj_.build(child_, gds_collector_=gds_collector_)
2021 self.innerclass.append(obj_)
2022 obj_.original_tagname_ = 'innerclass'
2023 elif nodeName_ == 'innerconcept':
2024 obj_ = refType.factory(parent_object_=self)
2025 obj_.build(child_, gds_collector_=gds_collector_)
2026 self.innerconcept.append(obj_)
2027 obj_.original_tagname_ = 'innerconcept'
2028 elif nodeName_ == 'innernamespace':
2029 obj_ = refType.factory(parent_object_=self)
2030 obj_.build(child_, gds_collector_=gds_collector_)
2031 self.innernamespace.append(obj_)
2032 obj_.original_tagname_ = 'innernamespace'
2033 elif nodeName_ == 'innerpage':
2034 obj_ = refType.factory(parent_object_=self)
2035 obj_.build(child_, gds_collector_=gds_collector_)
2036 self.innerpage.append(obj_)
2037 obj_.original_tagname_ = 'innerpage'
2038 elif nodeName_ == 'innergroup':
2039 obj_ = refType.factory(parent_object_=self)
2040 obj_.build(child_, gds_collector_=gds_collector_)
2041 self.innergroup.append(obj_)
2042 obj_.original_tagname_ = 'innergroup'
2043 elif nodeName_ == 'templateparamlist':
2044 obj_ = templateparamlistType.factory(parent_object_=self)
2045 obj_.build(child_, gds_collector_=gds_collector_)
2046 self.templateparamlist = obj_
2047 obj_.original_tagname_ = 'templateparamlist'
2048 elif nodeName_ == 'sectiondef':
2049 obj_ = sectiondefType.factory(parent_object_=self)
2050 obj_.build(child_, gds_collector_=gds_collector_)
2051 self.sectiondef.append(obj_)
2052 obj_.original_tagname_ = 'sectiondef'
2053 elif nodeName_ == 'tableofcontents':
2054 obj_ = tableofcontentsType.factory(parent_object_=self)
2055 obj_.build(child_, gds_collector_=gds_collector_)
2056 self.tableofcontents = obj_
2057 obj_.original_tagname_ = 'tableofcontents'
2058 elif nodeName_ == 'requiresclause':
2059 obj_ = linkedTextType.factory(parent_object_=self)
2060 obj_.build(child_, gds_collector_=gds_collector_)
2061 self.requiresclause = obj_
2062 obj_.original_tagname_ = 'requiresclause'
2063 elif nodeName_ == 'initializer':
2064 obj_ = linkedTextType.factory(parent_object_=self)
2065 obj_.build(child_, gds_collector_=gds_collector_)
2066 self.initializer = obj_
2067 obj_.original_tagname_ = 'initializer'
2068 elif nodeName_ == 'briefdescription':
2069 obj_ = descriptionType.factory(parent_object_=self)
2070 obj_.build(child_, gds_collector_=gds_collector_)
2071 self.briefdescription = obj_
2072 obj_.original_tagname_ = 'briefdescription'
2073 elif nodeName_ == 'detaileddescription':
2074 obj_ = descriptionType.factory(parent_object_=self)
2075 obj_.build(child_, gds_collector_=gds_collector_)
2076 self.detaileddescription = obj_
2077 obj_.original_tagname_ = 'detaileddescription'
2078 elif nodeName_ == 'inheritancegraph':
2079 obj_ = graphType.factory(parent_object_=self)
2080 obj_.build(child_, gds_collector_=gds_collector_)
2081 self.inheritancegraph = obj_
2082 obj_.original_tagname_ = 'inheritancegraph'
2083 elif nodeName_ == 'collaborationgraph':
2084 obj_ = graphType.factory(parent_object_=self)
2085 obj_.build(child_, gds_collector_=gds_collector_)
2086 self.collaborationgraph = obj_
2087 obj_.original_tagname_ = 'collaborationgraph'
2088 elif nodeName_ == 'programlisting':
2089 obj_ = listingType.factory(parent_object_=self)
2090 obj_.build(child_, gds_collector_=gds_collector_)
2091 self.programlisting = obj_
2092 obj_.original_tagname_ = 'programlisting'
2093 elif nodeName_ == 'location':
2094 obj_ = locationType.factory(parent_object_=self)
2095 obj_.build(child_, gds_collector_=gds_collector_)
2096 self.location = obj_
2097 obj_.original_tagname_ = 'location'
2098 elif nodeName_ == 'listofallmembers':
2099 obj_ = listofallmembersType.factory(parent_object_=self)
2100 obj_.build(child_, gds_collector_=gds_collector_)
2101 self.listofallmembers = obj_
2102 obj_.original_tagname_ = 'listofallmembers'
2103# end class compounddefType
2104
2105
2107 __hash__ = GeneratedsSuper.__hash__
2108 subclass = None
2109 superclass = None
2110 def __init__(self, member=None, gds_collector_=None, **kwargs_):
2111 self.gds_collector_ = gds_collector_
2112 self.gds_elementtree_node_ = None
2113 self.original_tagname_ = None
2114 self.parent_object_ = kwargs_.get('parent_object_')
2115 self.ns_prefix_ = None
2116 if member is None:
2117 self.member = []
2118 else:
2119 self.member = member
2120 self.member_nsprefix_ = None
2121 def factory(*args_, **kwargs_):
2122 if CurrentSubclassModule_ is not None:
2123 subclass = getSubclassFromModule_(
2124 CurrentSubclassModule_, listofallmembersType)
2125 if subclass is not None:
2126 return subclass(*args_, **kwargs_)
2127 if listofallmembersType.subclass:
2128 return listofallmembersType.subclass(*args_, **kwargs_)
2129 else:
2130 return listofallmembersType(*args_, **kwargs_)
2131 factory = staticmethod(factory)
2133 return self.ns_prefix_
2134 def set_ns_prefix_(self, ns_prefix):
2135 self.ns_prefix_ = ns_prefix
2136 def get_member(self):
2137 return self.member
2138 def set_member(self, member):
2139 self.member = member
2140 def add_member(self, value):
2141 self.member.append(value)
2142 def insert_member_at(self, index, value):
2143 self.member.insert(index, value)
2144 def replace_member_at(self, index, value):
2145 self.member[index] = value
2146 def hasContent_(self):
2147 if (
2148 self.member
2149 ):
2150 return True
2151 else:
2152 return False
2153 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listofallmembersType', pretty_print=True):
2154 imported_ns_def_ = GenerateDSNamespaceDefs_.get('listofallmembersType')
2155 if imported_ns_def_ is not None:
2156 namespacedef_ = imported_ns_def_
2157 if pretty_print:
2158 eol_ = '\n'
2159 else:
2160 eol_ = ''
2161 if self.original_tagname_ is not None and name_ == 'listofallmembersType':
2162 name_ = self.original_tagname_
2163 if UseCapturedNS_ and self.ns_prefix_:
2164 namespaceprefix_ = self.ns_prefix_ + ':'
2165 showIndent(outfile, level, pretty_print)
2166 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2167 already_processed = set()
2168 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='listofallmembersType')
2169 if self.hasContent_hasContent_():
2170 outfile.write('>%s' % (eol_, ))
2171 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='listofallmembersType', pretty_print=pretty_print)
2172 showIndent(outfile, level, pretty_print)
2173 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2174 else:
2175 outfile.write('/>%s' % (eol_, ))
2176 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='listofallmembersType'):
2177 pass
2178 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listofallmembersType', fromsubclass_=False, pretty_print=True):
2179 if pretty_print:
2180 eol_ = '\n'
2181 else:
2182 eol_ = ''
2183 for member_ in self.member:
2184 namespaceprefix_ = self.member_nsprefix_ + ':' if (UseCapturedNS_ and self.member_nsprefix_) else ''
2185 member_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='member', pretty_print=pretty_print)
2186 def build(self, node, gds_collector_=None):
2187 self.gds_collector_ = gds_collector_
2188 if SaveElementTreeNode:
2189 self.gds_elementtree_node_ = node
2190 already_processed = set()
2191 self.ns_prefix_ = node.prefix
2192 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
2193 for child in node:
2194 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2195 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2196 return self
2197 def buildAttributes(self, node, attrs, already_processed):
2198 pass
2199 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2200 if nodeName_ == 'member':
2201 obj_ = memberRefType.factory(parent_object_=self)
2202 obj_.build(child_, gds_collector_=gds_collector_)
2203 self.member.append(obj_)
2204 obj_.original_tagname_ = 'member'
2205# end class listofallmembersType
2206
2207
2208class memberRefType(GeneratedsSuper):
2209 __hash__ = GeneratedsSuper.__hash__
2210 subclass = None
2211 superclass = None
2212 def __init__(self, refid=None, prot=None, virt=None, ambiguityscope=None, scope=None, name=None, gds_collector_=None, **kwargs_):
2213 self.gds_collector_ = gds_collector_
2214 self.gds_elementtree_node_ = None
2215 self.original_tagname_ = None
2216 self.parent_object_ = kwargs_.get('parent_object_')
2217 self.ns_prefix_ = None
2218 self.refid = _cast(None, refid)
2219 self.refid_nsprefix_ = None
2220 self.prot = _cast(None, prot)
2221 self.prot_nsprefix_ = None
2222 self.virt = _cast(None, virt)
2223 self.virt_nsprefix_ = None
2224 self.ambiguityscope = _cast(None, ambiguityscope)
2225 self.ambiguityscope_nsprefix_ = None
2226 self.scope = scope
2227 self.scope_nsprefix_ = None
2228 self.name = name
2229 self.name_nsprefix_ = None
2230 def factory(*args_, **kwargs_):
2231 if CurrentSubclassModule_ is not None:
2232 subclass = getSubclassFromModule_(
2233 CurrentSubclassModule_, memberRefType)
2234 if subclass is not None:
2235 return subclass(*args_, **kwargs_)
2236 if memberRefType.subclass:
2237 return memberRefType.subclass(*args_, **kwargs_)
2238 else:
2239 return memberRefType(*args_, **kwargs_)
2240 factory = staticmethod(factory)
2242 return self.ns_prefix_
2243 def set_ns_prefix_(self, ns_prefix):
2244 self.ns_prefix_ = ns_prefix
2245 def get_scope(self):
2246 return self.scope
2247 def set_scope(self, scope):
2248 self.scope = scope
2249 def get_name(self):
2250 return self.name
2251 def set_name(self, name):
2252 self.name = name
2253 def get_refid(self):
2254 return self.refid
2255 def set_refid(self, refid):
2256 self.refid = refid
2257 def get_prot(self):
2258 return self.prot
2259 def set_prot(self, prot):
2260 self.prot = prot
2261 def get_virt(self):
2262 return self.virt
2263 def set_virt(self, virt):
2264 self.virt = virt
2266 return self.ambiguityscope
2267 def set_ambiguityscope(self, ambiguityscope):
2268 self.ambiguityscope = ambiguityscope
2270 # Validate type DoxProtectionKind, a restriction on xsd:string.
2271 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
2272 if not isinstance(value, str):
2274 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
2275 return False
2276 value = value
2277 enumerations = ['public', 'protected', 'private', 'package']
2278 if value not in enumerations:
2280 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxProtectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
2281 result = False
2282 def validate_DoxVirtualKind(self, value):
2283 # Validate type DoxVirtualKind, a restriction on xsd:string.
2284 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
2285 if not isinstance(value, str):
2287 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
2288 return False
2289 value = value
2290 enumerations = ['non-virtual', 'virtual', 'pure-virtual']
2291 if value not in enumerations:
2293 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxVirtualKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
2294 result = False
2295 def hasContent_(self):
2296 if (
2297 self.scope is not None or
2298 self.name is not None
2299 ):
2300 return True
2301 else:
2302 return False
2303 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberRefType', pretty_print=True):
2304 imported_ns_def_ = GenerateDSNamespaceDefs_.get('memberRefType')
2305 if imported_ns_def_ is not None:
2306 namespacedef_ = imported_ns_def_
2307 if pretty_print:
2308 eol_ = '\n'
2309 else:
2310 eol_ = ''
2311 if self.original_tagname_ is not None and name_ == 'memberRefType':
2312 name_ = self.original_tagname_
2313 if UseCapturedNS_ and self.ns_prefix_:
2314 namespaceprefix_ = self.ns_prefix_ + ':'
2315 showIndent(outfile, level, pretty_print)
2316 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2317 already_processed = set()
2318 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='memberRefType')
2319 if self.hasContent_hasContent_():
2320 outfile.write('>%s' % (eol_, ))
2321 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='memberRefType', pretty_print=pretty_print)
2322 showIndent(outfile, level, pretty_print)
2323 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2324 else:
2325 outfile.write('/>%s' % (eol_, ))
2326 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='memberRefType'):
2327 if self.refid is not None and 'refid' not in already_processed:
2328 already_processed.add('refid')
2329 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
2330 if self.prot is not None and 'prot' not in already_processed:
2331 already_processed.add('prot')
2332 outfile.write(' prot=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.prot), input_name='prot')), ))
2333 if self.virt is not None and 'virt' not in already_processed:
2334 already_processed.add('virt')
2335 outfile.write(' virt=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.virt), input_name='virt')), ))
2336 if self.ambiguityscope is not None and 'ambiguityscope' not in already_processed:
2337 already_processed.add('ambiguityscope')
2338 outfile.write(' ambiguityscope=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.ambiguityscope), input_name='ambiguityscope')), ))
2339 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberRefType', fromsubclass_=False, pretty_print=True):
2340 if pretty_print:
2341 eol_ = '\n'
2342 else:
2343 eol_ = ''
2344 if self.scope is not None:
2345 namespaceprefix_ = self.scope_nsprefix_ + ':' if (UseCapturedNS_ and self.scope_nsprefix_) else ''
2346 showIndent(outfile, level, pretty_print)
2347 outfile.write('<%sscope>%s</%sscope>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.scope), input_name='scope')), namespaceprefix_ , eol_))
2348 if self.name is not None:
2349 namespaceprefix_ = self.name_nsprefix_ + ':' if (UseCapturedNS_ and self.name_nsprefix_) else ''
2350 showIndent(outfile, level, pretty_print)
2351 outfile.write('<%sname>%s</%sname>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.name), input_name='name')), namespaceprefix_ , eol_))
2352 def build(self, node, gds_collector_=None):
2353 self.gds_collector_ = gds_collector_
2354 if SaveElementTreeNode:
2355 self.gds_elementtree_node_ = node
2356 already_processed = set()
2357 self.ns_prefix_ = node.prefix
2358 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
2359 for child in node:
2360 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2361 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2362 return self
2363 def buildAttributes(self, node, attrs, already_processed):
2364 value = find_attr_value_('refid', node)
2365 if value is not None and 'refid' not in already_processed:
2366 already_processed.add('refid')
2367 self.refid = value
2368 value = find_attr_value_('prot', node)
2369 if value is not None and 'prot' not in already_processed:
2370 already_processed.add('prot')
2371 self.prot = value
2372 self.validate_DoxProtectionKindvalidate_DoxProtectionKind(self.prot) # validate type DoxProtectionKind
2373 value = find_attr_value_('virt', node)
2374 if value is not None and 'virt' not in already_processed:
2375 already_processed.add('virt')
2376 self.virt = value
2377 self.validate_DoxVirtualKindvalidate_DoxVirtualKind(self.virt) # validate type DoxVirtualKind
2378 value = find_attr_value_('ambiguityscope', node)
2379 if value is not None and 'ambiguityscope' not in already_processed:
2380 already_processed.add('ambiguityscope')
2381 self.ambiguityscope = value
2382 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2383 if nodeName_ == 'scope':
2384 value_ = child_.text
2385 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'scope')
2386 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'scope')
2387 self.scope = value_
2388 self.scope_nsprefix_ = child_.prefix
2389 elif nodeName_ == 'name':
2390 value_ = child_.text
2391 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'name')
2392 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'name')
2393 self.name = value_
2394 self.name_nsprefix_ = child_.prefix
2395# end class memberRefType
2396
2397
2398class scope(GeneratedsSuper):
2399 __hash__ = GeneratedsSuper.__hash__
2400 subclass = None
2401 superclass = None
2402 def __init__(self, gds_collector_=None, **kwargs_):
2403 self.gds_collector_ = gds_collector_
2404 self.gds_elementtree_node_ = None
2405 self.original_tagname_ = None
2406 self.parent_object_ = kwargs_.get('parent_object_')
2407 self.ns_prefix_ = None
2408 def factory(*args_, **kwargs_):
2409 if CurrentSubclassModule_ is not None:
2410 subclass = getSubclassFromModule_(
2411 CurrentSubclassModule_, scope)
2412 if subclass is not None:
2413 return subclass(*args_, **kwargs_)
2414 if scope.subclass:
2415 return scope.subclass(*args_, **kwargs_)
2416 else:
2417 return scope(*args_, **kwargs_)
2418 factory = staticmethod(factory)
2420 return self.ns_prefix_
2421 def set_ns_prefix_(self, ns_prefix):
2422 self.ns_prefix_ = ns_prefix
2423 def hasContent_(self):
2424 if (
2425
2426 ):
2427 return True
2428 else:
2429 return False
2430 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='scope', pretty_print=True):
2431 imported_ns_def_ = GenerateDSNamespaceDefs_.get('scope')
2432 if imported_ns_def_ is not None:
2433 namespacedef_ = imported_ns_def_
2434 if pretty_print:
2435 eol_ = '\n'
2436 else:
2437 eol_ = ''
2438 if self.original_tagname_ is not None and name_ == 'scope':
2439 name_ = self.original_tagname_
2440 if UseCapturedNS_ and self.ns_prefix_:
2441 namespaceprefix_ = self.ns_prefix_ + ':'
2442 showIndent(outfile, level, pretty_print)
2443 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2444 already_processed = set()
2445 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='scope')
2446 if self.hasContent_hasContent_():
2447 outfile.write('>%s' % (eol_, ))
2448 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='scope', pretty_print=pretty_print)
2449 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2450 else:
2451 outfile.write('/>%s' % (eol_, ))
2452 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='scope'):
2453 pass
2454 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='scope', fromsubclass_=False, pretty_print=True):
2455 pass
2456 def build(self, node, gds_collector_=None):
2457 self.gds_collector_ = gds_collector_
2458 if SaveElementTreeNode:
2459 self.gds_elementtree_node_ = node
2460 already_processed = set()
2461 self.ns_prefix_ = node.prefix
2462 self.buildAttributes(node, node.attrib, already_processed)
2463 for child in node:
2464 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2465 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2466 return self
2467 def buildAttributes(self, node, attrs, already_processed):
2468 pass
2469 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2470 pass
2471# end class scope
2472
2473
2474class name(GeneratedsSuper):
2475 __hash__ = GeneratedsSuper.__hash__
2476 subclass = None
2477 superclass = None
2478 def __init__(self, gds_collector_=None, **kwargs_):
2479 self.gds_collector_ = gds_collector_
2480 self.gds_elementtree_node_ = None
2481 self.original_tagname_ = None
2482 self.parent_object_ = kwargs_.get('parent_object_')
2483 self.ns_prefix_ = None
2484 def factory(*args_, **kwargs_):
2485 if CurrentSubclassModule_ is not None:
2486 subclass = getSubclassFromModule_(
2487 CurrentSubclassModule_, name)
2488 if subclass is not None:
2489 return subclass(*args_, **kwargs_)
2490 if name.subclass:
2491 return name.subclass(*args_, **kwargs_)
2492 else:
2493 return name(*args_, **kwargs_)
2494 factory = staticmethod(factory)
2496 return self.ns_prefix_
2497 def set_ns_prefix_(self, ns_prefix):
2498 self.ns_prefix_ = ns_prefix
2499 def hasContent_(self):
2500 if (
2501
2502 ):
2503 return True
2504 else:
2505 return False
2506 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='name', pretty_print=True):
2507 imported_ns_def_ = GenerateDSNamespaceDefs_.get('name')
2508 if imported_ns_def_ is not None:
2509 namespacedef_ = imported_ns_def_
2510 if pretty_print:
2511 eol_ = '\n'
2512 else:
2513 eol_ = ''
2514 if self.original_tagname_ is not None and name_ == 'name':
2515 name_ = self.original_tagname_
2516 if UseCapturedNS_ and self.ns_prefix_:
2517 namespaceprefix_ = self.ns_prefix_ + ':'
2518 showIndent(outfile, level, pretty_print)
2519 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2520 already_processed = set()
2521 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='name')
2522 if self.hasContent_hasContent_():
2523 outfile.write('>%s' % (eol_, ))
2524 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='name', pretty_print=pretty_print)
2525 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2526 else:
2527 outfile.write('/>%s' % (eol_, ))
2528 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='name'):
2529 pass
2530 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='name', fromsubclass_=False, pretty_print=True):
2531 pass
2532 def build(self, node, gds_collector_=None):
2533 self.gds_collector_ = gds_collector_
2534 if SaveElementTreeNode:
2535 self.gds_elementtree_node_ = node
2536 already_processed = set()
2537 self.ns_prefix_ = node.prefix
2538 self.buildAttributes(node, node.attrib, already_processed)
2539 for child in node:
2540 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2541 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2542 return self
2543 def buildAttributes(self, node, attrs, already_processed):
2544 pass
2545 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2546 pass
2547# end class name
2548
2549
2550class docHtmlOnlyType(GeneratedsSuper):
2551 __hash__ = GeneratedsSuper.__hash__
2552 subclass = None
2553 superclass = None
2554 def __init__(self, block=None, valueOf_=None, gds_collector_=None, **kwargs_):
2555 self.gds_collector_ = gds_collector_
2556 self.gds_elementtree_node_ = None
2557 self.original_tagname_ = None
2558 self.parent_object_ = kwargs_.get('parent_object_')
2559 self.ns_prefix_ = None
2560 self.block = _cast(None, block)
2561 self.block_nsprefix_ = None
2562 self.valueOf_ = valueOf_
2563 def factory(*args_, **kwargs_):
2564 if CurrentSubclassModule_ is not None:
2565 subclass = getSubclassFromModule_(
2566 CurrentSubclassModule_, docHtmlOnlyType)
2567 if subclass is not None:
2568 return subclass(*args_, **kwargs_)
2569 if docHtmlOnlyType.subclass:
2570 return docHtmlOnlyType.subclass(*args_, **kwargs_)
2571 else:
2572 return docHtmlOnlyType(*args_, **kwargs_)
2573 factory = staticmethod(factory)
2575 return self.ns_prefix_
2576 def set_ns_prefix_(self, ns_prefix):
2577 self.ns_prefix_ = ns_prefix
2578 def get_block(self):
2579 return self.block
2580 def set_block(self, block):
2581 self.block = block
2582 def get_valueOf_(self): return self.valueOf_
2583 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
2584 def hasContent_(self):
2585 if (
2586 (1 if type(self.valueOf_) in [int,float] else self.valueOf_)
2587 ):
2588 return True
2589 else:
2590 return False
2591 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHtmlOnlyType', pretty_print=True):
2592 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docHtmlOnlyType')
2593 if imported_ns_def_ is not None:
2594 namespacedef_ = imported_ns_def_
2595 if pretty_print:
2596 eol_ = '\n'
2597 else:
2598 eol_ = ''
2599 if self.original_tagname_ is not None and name_ == 'docHtmlOnlyType':
2600 name_ = self.original_tagname_
2601 if UseCapturedNS_ and self.ns_prefix_:
2602 namespaceprefix_ = self.ns_prefix_ + ':'
2603 showIndent(outfile, level, pretty_print)
2604 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2605 already_processed = set()
2606 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docHtmlOnlyType')
2607 if self.hasContent_hasContent_():
2608 outfile.write('>')
2609 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
2610 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docHtmlOnlyType', pretty_print=pretty_print)
2611 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2612 else:
2613 outfile.write('/>%s' % (eol_, ))
2614 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docHtmlOnlyType'):
2615 if self.block is not None and 'block' not in already_processed:
2616 already_processed.add('block')
2617 outfile.write(' block=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.block), input_name='block')), ))
2618 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHtmlOnlyType', fromsubclass_=False, pretty_print=True):
2619 pass
2620 def build(self, node, gds_collector_=None):
2621 self.gds_collector_ = gds_collector_
2622 if SaveElementTreeNode:
2623 self.gds_elementtree_node_ = node
2624 already_processed = set()
2625 self.ns_prefix_ = node.prefix
2626 self.buildAttributes(node, node.attrib, already_processed)
2627 self.valueOf_ = get_all_text_(node)
2628 for child in node:
2629 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2630 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2631 return self
2632 def buildAttributes(self, node, attrs, already_processed):
2633 value = find_attr_value_('block', node)
2634 if value is not None and 'block' not in already_processed:
2635 already_processed.add('block')
2636 self.block = value
2637 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2638 pass
2639# end class docHtmlOnlyType
2640
2641
2642class compoundRefType(GeneratedsSuper):
2643 __hash__ = GeneratedsSuper.__hash__
2644 subclass = None
2645 superclass = None
2646 def __init__(self, refid=None, prot=None, virt=None, valueOf_=None, gds_collector_=None, **kwargs_):
2647 self.gds_collector_ = gds_collector_
2648 self.gds_elementtree_node_ = None
2649 self.original_tagname_ = None
2650 self.parent_object_ = kwargs_.get('parent_object_')
2651 self.ns_prefix_ = None
2652 self.refid = _cast(None, refid)
2653 self.refid_nsprefix_ = None
2654 self.prot = _cast(None, prot)
2655 self.prot_nsprefix_ = None
2656 self.virt = _cast(None, virt)
2657 self.virt_nsprefix_ = None
2658 self.valueOf_ = valueOf_
2659 def factory(*args_, **kwargs_):
2660 if CurrentSubclassModule_ is not None:
2661 subclass = getSubclassFromModule_(
2662 CurrentSubclassModule_, compoundRefType)
2663 if subclass is not None:
2664 return subclass(*args_, **kwargs_)
2665 if compoundRefType.subclass:
2666 return compoundRefType.subclass(*args_, **kwargs_)
2667 else:
2668 return compoundRefType(*args_, **kwargs_)
2669 factory = staticmethod(factory)
2671 return self.ns_prefix_
2672 def set_ns_prefix_(self, ns_prefix):
2673 self.ns_prefix_ = ns_prefix
2674 def get_refid(self):
2675 return self.refid
2676 def set_refid(self, refid):
2677 self.refid = refid
2678 def get_prot(self):
2679 return self.prot
2680 def set_prot(self, prot):
2681 self.prot = prot
2682 def get_virt(self):
2683 return self.virt
2684 def set_virt(self, virt):
2685 self.virt = virt
2686 def get_valueOf_(self): return self.valueOf_
2687 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
2689 # Validate type DoxProtectionKind, a restriction on xsd:string.
2690 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
2691 if not isinstance(value, str):
2693 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
2694 return False
2695 value = value
2696 enumerations = ['public', 'protected', 'private', 'package']
2697 if value not in enumerations:
2699 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxProtectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
2700 result = False
2701 def validate_DoxVirtualKind(self, value):
2702 # Validate type DoxVirtualKind, a restriction on xsd:string.
2703 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
2704 if not isinstance(value, str):
2706 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
2707 return False
2708 value = value
2709 enumerations = ['non-virtual', 'virtual', 'pure-virtual']
2710 if value not in enumerations:
2712 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxVirtualKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
2713 result = False
2714 def hasContent_(self):
2715 if (
2716 (1 if type(self.valueOf_) in [int,float] else self.valueOf_)
2717 ):
2718 return True
2719 else:
2720 return False
2721 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compoundRefType', pretty_print=True):
2722 imported_ns_def_ = GenerateDSNamespaceDefs_.get('compoundRefType')
2723 if imported_ns_def_ is not None:
2724 namespacedef_ = imported_ns_def_
2725 if pretty_print:
2726 eol_ = '\n'
2727 else:
2728 eol_ = ''
2729 if self.original_tagname_ is not None and name_ == 'compoundRefType':
2730 name_ = self.original_tagname_
2731 if UseCapturedNS_ and self.ns_prefix_:
2732 namespaceprefix_ = self.ns_prefix_ + ':'
2733 showIndent(outfile, level, pretty_print)
2734 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2735 already_processed = set()
2736 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='compoundRefType')
2737 if self.hasContent_hasContent_():
2738 outfile.write('>')
2739 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
2740 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='compoundRefType', pretty_print=pretty_print)
2741 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2742 else:
2743 outfile.write('/>%s' % (eol_, ))
2744 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='compoundRefType'):
2745 if self.refid is not None and 'refid' not in already_processed:
2746 already_processed.add('refid')
2747 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
2748 if self.prot is not None and 'prot' not in already_processed:
2749 already_processed.add('prot')
2750 outfile.write(' prot=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.prot), input_name='prot')), ))
2751 if self.virt is not None and 'virt' not in already_processed:
2752 already_processed.add('virt')
2753 outfile.write(' virt=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.virt), input_name='virt')), ))
2754 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compoundRefType', fromsubclass_=False, pretty_print=True):
2755 pass
2756 def build(self, node, gds_collector_=None):
2757 self.gds_collector_ = gds_collector_
2758 if SaveElementTreeNode:
2759 self.gds_elementtree_node_ = node
2760 already_processed = set()
2761 self.ns_prefix_ = node.prefix
2762 self.buildAttributes(node, node.attrib, already_processed)
2763 self.valueOf_ = get_all_text_(node)
2764 for child in node:
2765 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2766 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2767 return self
2768 def buildAttributes(self, node, attrs, already_processed):
2769 value = find_attr_value_('refid', node)
2770 if value is not None and 'refid' not in already_processed:
2771 already_processed.add('refid')
2772 self.refid = value
2773 value = find_attr_value_('prot', node)
2774 if value is not None and 'prot' not in already_processed:
2775 already_processed.add('prot')
2776 self.prot = value
2777 self.validate_DoxProtectionKindvalidate_DoxProtectionKind(self.prot) # validate type DoxProtectionKind
2778 value = find_attr_value_('virt', node)
2779 if value is not None and 'virt' not in already_processed:
2780 already_processed.add('virt')
2781 self.virt = value
2782 self.validate_DoxVirtualKindvalidate_DoxVirtualKind(self.virt) # validate type DoxVirtualKind
2783 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2784 pass
2785# end class compoundRefType
2786
2787
2788class reimplementType(GeneratedsSuper):
2789 __hash__ = GeneratedsSuper.__hash__
2790 subclass = None
2791 superclass = None
2792 def __init__(self, refid=None, valueOf_=None, gds_collector_=None, **kwargs_):
2793 self.gds_collector_ = gds_collector_
2794 self.gds_elementtree_node_ = None
2795 self.original_tagname_ = None
2796 self.parent_object_ = kwargs_.get('parent_object_')
2797 self.ns_prefix_ = None
2798 self.refid = _cast(None, refid)
2799 self.refid_nsprefix_ = None
2800 self.valueOf_ = valueOf_
2801 def factory(*args_, **kwargs_):
2802 if CurrentSubclassModule_ is not None:
2803 subclass = getSubclassFromModule_(
2804 CurrentSubclassModule_, reimplementType)
2805 if subclass is not None:
2806 return subclass(*args_, **kwargs_)
2807 if reimplementType.subclass:
2808 return reimplementType.subclass(*args_, **kwargs_)
2809 else:
2810 return reimplementType(*args_, **kwargs_)
2811 factory = staticmethod(factory)
2813 return self.ns_prefix_
2814 def set_ns_prefix_(self, ns_prefix):
2815 self.ns_prefix_ = ns_prefix
2816 def get_refid(self):
2817 return self.refid
2818 def set_refid(self, refid):
2819 self.refid = refid
2820 def get_valueOf_(self): return self.valueOf_
2821 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
2822 def hasContent_(self):
2823 if (
2824 (1 if type(self.valueOf_) in [int,float] else self.valueOf_)
2825 ):
2826 return True
2827 else:
2828 return False
2829 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='reimplementType', pretty_print=True):
2830 imported_ns_def_ = GenerateDSNamespaceDefs_.get('reimplementType')
2831 if imported_ns_def_ is not None:
2832 namespacedef_ = imported_ns_def_
2833 if pretty_print:
2834 eol_ = '\n'
2835 else:
2836 eol_ = ''
2837 if self.original_tagname_ is not None and name_ == 'reimplementType':
2838 name_ = self.original_tagname_
2839 if UseCapturedNS_ and self.ns_prefix_:
2840 namespaceprefix_ = self.ns_prefix_ + ':'
2841 showIndent(outfile, level, pretty_print)
2842 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2843 already_processed = set()
2844 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='reimplementType')
2845 if self.hasContent_hasContent_():
2846 outfile.write('>')
2847 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
2848 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='reimplementType', pretty_print=pretty_print)
2849 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2850 else:
2851 outfile.write('/>%s' % (eol_, ))
2852 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='reimplementType'):
2853 if self.refid is not None and 'refid' not in already_processed:
2854 already_processed.add('refid')
2855 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
2856 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='reimplementType', fromsubclass_=False, pretty_print=True):
2857 pass
2858 def build(self, node, gds_collector_=None):
2859 self.gds_collector_ = gds_collector_
2860 if SaveElementTreeNode:
2861 self.gds_elementtree_node_ = node
2862 already_processed = set()
2863 self.ns_prefix_ = node.prefix
2864 self.buildAttributes(node, node.attrib, already_processed)
2865 self.valueOf_ = get_all_text_(node)
2866 for child in node:
2867 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2868 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2869 return self
2870 def buildAttributes(self, node, attrs, already_processed):
2871 value = find_attr_value_('refid', node)
2872 if value is not None and 'refid' not in already_processed:
2873 already_processed.add('refid')
2874 self.refid = value
2875 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2876 pass
2877# end class reimplementType
2878
2879
2880class incType(GeneratedsSuper):
2881 __hash__ = GeneratedsSuper.__hash__
2882 subclass = None
2883 superclass = None
2884 def __init__(self, refid=None, local=None, valueOf_=None, gds_collector_=None, **kwargs_):
2885 self.gds_collector_ = gds_collector_
2886 self.gds_elementtree_node_ = None
2887 self.original_tagname_ = None
2888 self.parent_object_ = kwargs_.get('parent_object_')
2889 self.ns_prefix_ = None
2890 self.refid = _cast(None, refid)
2891 self.refid_nsprefix_ = None
2892 self.local = _cast(None, local)
2893 self.local_nsprefix_ = None
2894 self.valueOf_ = valueOf_
2895 def factory(*args_, **kwargs_):
2896 if CurrentSubclassModule_ is not None:
2897 subclass = getSubclassFromModule_(
2898 CurrentSubclassModule_, incType)
2899 if subclass is not None:
2900 return subclass(*args_, **kwargs_)
2901 if incType.subclass:
2902 return incType.subclass(*args_, **kwargs_)
2903 else:
2904 return incType(*args_, **kwargs_)
2905 factory = staticmethod(factory)
2907 return self.ns_prefix_
2908 def set_ns_prefix_(self, ns_prefix):
2909 self.ns_prefix_ = ns_prefix
2910 def get_refid(self):
2911 return self.refid
2912 def set_refid(self, refid):
2913 self.refid = refid
2914 def get_local(self):
2915 return self.local
2916 def set_local(self, local):
2917 self.local = local
2918 def get_valueOf_(self): return self.valueOf_
2919 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
2920 def validate_DoxBool(self, value):
2921 # Validate type DoxBool, a restriction on xsd:string.
2922 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
2923 if not isinstance(value, str):
2925 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
2926 return False
2927 value = value
2928 enumerations = ['yes', 'no']
2929 if value not in enumerations:
2931 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
2932 result = False
2933 def hasContent_(self):
2934 if (
2935 (1 if type(self.valueOf_) in [int,float] else self.valueOf_)
2936 ):
2937 return True
2938 else:
2939 return False
2940 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='incType', pretty_print=True):
2941 imported_ns_def_ = GenerateDSNamespaceDefs_.get('incType')
2942 if imported_ns_def_ is not None:
2943 namespacedef_ = imported_ns_def_
2944 if pretty_print:
2945 eol_ = '\n'
2946 else:
2947 eol_ = ''
2948 if self.original_tagname_ is not None and name_ == 'incType':
2949 name_ = self.original_tagname_
2950 if UseCapturedNS_ and self.ns_prefix_:
2951 namespaceprefix_ = self.ns_prefix_ + ':'
2952 showIndent(outfile, level, pretty_print)
2953 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
2954 already_processed = set()
2955 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='incType')
2956 if self.hasContent_hasContent_():
2957 outfile.write('>')
2958 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
2959 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='incType', pretty_print=pretty_print)
2960 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
2961 else:
2962 outfile.write('/>%s' % (eol_, ))
2963 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='incType'):
2964 if self.refid is not None and 'refid' not in already_processed:
2965 already_processed.add('refid')
2966 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
2967 if self.local is not None and 'local' not in already_processed:
2968 already_processed.add('local')
2969 outfile.write(' local=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.local), input_name='local')), ))
2970 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='incType', fromsubclass_=False, pretty_print=True):
2971 pass
2972 def build(self, node, gds_collector_=None):
2973 self.gds_collector_ = gds_collector_
2974 if SaveElementTreeNode:
2975 self.gds_elementtree_node_ = node
2976 already_processed = set()
2977 self.ns_prefix_ = node.prefix
2978 self.buildAttributes(node, node.attrib, already_processed)
2979 self.valueOf_ = get_all_text_(node)
2980 for child in node:
2981 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2982 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
2983 return self
2984 def buildAttributes(self, node, attrs, already_processed):
2985 value = find_attr_value_('refid', node)
2986 if value is not None and 'refid' not in already_processed:
2987 already_processed.add('refid')
2988 self.refid = value
2989 value = find_attr_value_('local', node)
2990 if value is not None and 'local' not in already_processed:
2991 already_processed.add('local')
2992 self.local = value
2993 self.validate_DoxBoolvalidate_DoxBool(self.local) # validate type DoxBool
2994 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
2995 pass
2996# end class incType
2997
2998
2999class refType(GeneratedsSuper):
3000 __hash__ = GeneratedsSuper.__hash__
3001 subclass = None
3002 superclass = None
3003 def __init__(self, refid=None, prot=None, inline=None, valueOf_=None, gds_collector_=None, **kwargs_):
3004 self.gds_collector_ = gds_collector_
3005 self.gds_elementtree_node_ = None
3006 self.original_tagname_ = None
3007 self.parent_object_ = kwargs_.get('parent_object_')
3008 self.ns_prefix_ = None
3009 self.refid = _cast(None, refid)
3010 self.refid_nsprefix_ = None
3011 self.prot = _cast(None, prot)
3012 self.prot_nsprefix_ = None
3013 self.inline = _cast(None, inline)
3014 self.inline_nsprefix_ = None
3015 self.valueOf_ = valueOf_
3016 def factory(*args_, **kwargs_):
3017 if CurrentSubclassModule_ is not None:
3018 subclass = getSubclassFromModule_(
3019 CurrentSubclassModule_, refType)
3020 if subclass is not None:
3021 return subclass(*args_, **kwargs_)
3022 if refType.subclass:
3023 return refType.subclass(*args_, **kwargs_)
3024 else:
3025 return refType(*args_, **kwargs_)
3026 factory = staticmethod(factory)
3028 return self.ns_prefix_
3029 def set_ns_prefix_(self, ns_prefix):
3030 self.ns_prefix_ = ns_prefix
3031 def get_refid(self):
3032 return self.refid
3033 def set_refid(self, refid):
3034 self.refid = refid
3035 def get_prot(self):
3036 return self.prot
3037 def set_prot(self, prot):
3038 self.prot = prot
3039 def get_inline(self):
3040 return self.inline
3041 def set_inline(self, inline):
3042 self.inline = inline
3043 def get_valueOf_(self): return self.valueOf_
3044 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
3046 # Validate type DoxProtectionKind, a restriction on xsd:string.
3047 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3048 if not isinstance(value, str):
3050 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3051 return False
3052 value = value
3053 enumerations = ['public', 'protected', 'private', 'package']
3054 if value not in enumerations:
3056 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxProtectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3057 result = False
3058 def validate_DoxBool(self, value):
3059 # Validate type DoxBool, a restriction on xsd:string.
3060 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3061 if not isinstance(value, str):
3063 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3064 return False
3065 value = value
3066 enumerations = ['yes', 'no']
3067 if value not in enumerations:
3069 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3070 result = False
3071 def hasContent_(self):
3072 if (
3073 (1 if type(self.valueOf_) in [int,float] else self.valueOf_)
3074 ):
3075 return True
3076 else:
3077 return False
3078 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refType', pretty_print=True):
3079 imported_ns_def_ = GenerateDSNamespaceDefs_.get('refType')
3080 if imported_ns_def_ is not None:
3081 namespacedef_ = imported_ns_def_
3082 if pretty_print:
3083 eol_ = '\n'
3084 else:
3085 eol_ = ''
3086 if self.original_tagname_ is not None and name_ == 'refType':
3087 name_ = self.original_tagname_
3088 if UseCapturedNS_ and self.ns_prefix_:
3089 namespaceprefix_ = self.ns_prefix_ + ':'
3090 showIndent(outfile, level, pretty_print)
3091 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
3092 already_processed = set()
3093 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='refType')
3094 if self.hasContent_hasContent_():
3095 outfile.write('>')
3096 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
3097 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='refType', pretty_print=pretty_print)
3098 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
3099 else:
3100 outfile.write('/>%s' % (eol_, ))
3101 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='refType'):
3102 if self.refid is not None and 'refid' not in already_processed:
3103 already_processed.add('refid')
3104 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
3105 if self.prot is not None and 'prot' not in already_processed:
3106 already_processed.add('prot')
3107 outfile.write(' prot=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.prot), input_name='prot')), ))
3108 if self.inline is not None and 'inline' not in already_processed:
3109 already_processed.add('inline')
3110 outfile.write(' inline=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.inline), input_name='inline')), ))
3111 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refType', fromsubclass_=False, pretty_print=True):
3112 pass
3113 def build(self, node, gds_collector_=None):
3114 self.gds_collector_ = gds_collector_
3115 if SaveElementTreeNode:
3116 self.gds_elementtree_node_ = node
3117 already_processed = set()
3118 self.ns_prefix_ = node.prefix
3119 self.buildAttributes(node, node.attrib, already_processed)
3120 self.valueOf_ = get_all_text_(node)
3121 for child in node:
3122 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
3123 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
3124 return self
3125 def buildAttributes(self, node, attrs, already_processed):
3126 value = find_attr_value_('refid', node)
3127 if value is not None and 'refid' not in already_processed:
3128 already_processed.add('refid')
3129 self.refid = value
3130 value = find_attr_value_('prot', node)
3131 if value is not None and 'prot' not in already_processed:
3132 already_processed.add('prot')
3133 self.prot = value
3134 self.validate_DoxProtectionKindvalidate_DoxProtectionKind(self.prot) # validate type DoxProtectionKind
3135 value = find_attr_value_('inline', node)
3136 if value is not None and 'inline' not in already_processed:
3137 already_processed.add('inline')
3138 self.inline = value
3139 self.validate_DoxBoolvalidate_DoxBool(self.inline) # validate type DoxBool
3140 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
3141 pass
3142# end class refType
3143
3144
3145class refTextType(GeneratedsSuper):
3146 __hash__ = GeneratedsSuper.__hash__
3147 subclass = None
3148 superclass = None
3149 def __init__(self, refid=None, kindref=None, external=None, tooltip=None, valueOf_=None, gds_collector_=None, **kwargs_):
3150 self.gds_collector_ = gds_collector_
3151 self.gds_elementtree_node_ = None
3152 self.original_tagname_ = None
3153 self.parent_object_ = kwargs_.get('parent_object_')
3154 self.ns_prefix_ = None
3155 self.refid = _cast(None, refid)
3156 self.refid_nsprefix_ = None
3157 self.kindref = _cast(None, kindref)
3158 self.kindref_nsprefix_ = None
3159 self.external = _cast(None, external)
3160 self.external_nsprefix_ = None
3161 self.tooltip = _cast(None, tooltip)
3162 self.tooltip_nsprefix_ = None
3163 self.valueOf_ = valueOf_
3164 def factory(*args_, **kwargs_):
3165 if CurrentSubclassModule_ is not None:
3166 subclass = getSubclassFromModule_(
3167 CurrentSubclassModule_, refTextType)
3168 if subclass is not None:
3169 return subclass(*args_, **kwargs_)
3170 if refTextType.subclass:
3171 return refTextType.subclass(*args_, **kwargs_)
3172 else:
3173 return refTextType(*args_, **kwargs_)
3174 factory = staticmethod(factory)
3176 return self.ns_prefix_
3177 def set_ns_prefix_(self, ns_prefix):
3178 self.ns_prefix_ = ns_prefix
3179 def get_refid(self):
3180 return self.refid
3181 def set_refid(self, refid):
3182 self.refid = refid
3183 def get_kindref(self):
3184 return self.kindref
3185 def set_kindref(self, kindref):
3186 self.kindref = kindref
3187 def get_external(self):
3188 return self.external
3189 def set_external(self, external):
3190 self.external = external
3191 def get_tooltip(self):
3192 return self.tooltip
3193 def set_tooltip(self, tooltip):
3194 self.tooltip = tooltip
3195 def get_valueOf_(self): return self.valueOf_
3196 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
3197 def validate_DoxRefKind(self, value):
3198 # Validate type DoxRefKind, a restriction on xsd:string.
3199 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3200 if not isinstance(value, str):
3202 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3203 return False
3204 value = value
3205 enumerations = ['compound', 'member']
3206 if value not in enumerations:
3208 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxRefKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3209 result = False
3210 def hasContent_(self):
3211 if (
3212 (1 if type(self.valueOf_) in [int,float] else self.valueOf_)
3213 ):
3214 return True
3215 else:
3216 return False
3217 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refTextType', pretty_print=True):
3218 imported_ns_def_ = GenerateDSNamespaceDefs_.get('refTextType')
3219 if imported_ns_def_ is not None:
3220 namespacedef_ = imported_ns_def_
3221 if pretty_print:
3222 eol_ = '\n'
3223 else:
3224 eol_ = ''
3225 if self.original_tagname_ is not None and name_ == 'refTextType':
3226 name_ = self.original_tagname_
3227 if UseCapturedNS_ and self.ns_prefix_:
3228 namespaceprefix_ = self.ns_prefix_ + ':'
3229 showIndent(outfile, level, pretty_print)
3230 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
3231 already_processed = set()
3232 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='refTextType')
3233 if self.hasContent_hasContent_():
3234 outfile.write('>')
3235 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
3236 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='refTextType', pretty_print=pretty_print)
3237 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
3238 else:
3239 outfile.write('/>%s' % (eol_, ))
3240 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='refTextType'):
3241 if self.refid is not None and 'refid' not in already_processed:
3242 already_processed.add('refid')
3243 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
3244 if self.kindref is not None and 'kindref' not in already_processed:
3245 already_processed.add('kindref')
3246 outfile.write(' kindref=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kindref), input_name='kindref')), ))
3247 if self.external is not None and 'external' not in already_processed:
3248 already_processed.add('external')
3249 outfile.write(' external=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.external), input_name='external')), ))
3250 if self.tooltip is not None and 'tooltip' not in already_processed:
3251 already_processed.add('tooltip')
3252 outfile.write(' tooltip=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.tooltip), input_name='tooltip')), ))
3253 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refTextType', fromsubclass_=False, pretty_print=True):
3254 pass
3255 def build(self, node, gds_collector_=None):
3256 self.gds_collector_ = gds_collector_
3257 if SaveElementTreeNode:
3258 self.gds_elementtree_node_ = node
3259 already_processed = set()
3260 self.ns_prefix_ = node.prefix
3261 self.buildAttributes(node, node.attrib, already_processed)
3262 self.valueOf_ = get_all_text_(node)
3263 for child in node:
3264 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
3265 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
3266 return self
3267 def buildAttributes(self, node, attrs, already_processed):
3268 value = find_attr_value_('refid', node)
3269 if value is not None and 'refid' not in already_processed:
3270 already_processed.add('refid')
3271 self.refid = value
3272 value = find_attr_value_('kindref', node)
3273 if value is not None and 'kindref' not in already_processed:
3274 already_processed.add('kindref')
3275 self.kindref = value
3276 self.validate_DoxRefKindvalidate_DoxRefKind(self.kindref) # validate type DoxRefKind
3277 value = find_attr_value_('external', node)
3278 if value is not None and 'external' not in already_processed:
3279 already_processed.add('external')
3280 self.external = value
3281 value = find_attr_value_('tooltip', node)
3282 if value is not None and 'tooltip' not in already_processed:
3283 already_processed.add('tooltip')
3284 self.tooltip = value
3285 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
3286 pass
3287# end class refTextType
3288
3289
3290class sectiondefType(GeneratedsSuper):
3291 __hash__ = GeneratedsSuper.__hash__
3292 subclass = None
3293 superclass = None
3294 def __init__(self, kind=None, header=None, description=None, memberdef=None, gds_collector_=None, **kwargs_):
3295 self.gds_collector_ = gds_collector_
3296 self.gds_elementtree_node_ = None
3297 self.original_tagname_ = None
3298 self.parent_object_ = kwargs_.get('parent_object_')
3299 self.ns_prefix_ = None
3300 self.kind = _cast(None, kind)
3301 self.kind_nsprefix_ = None
3302 self.header = header
3303 self.header_nsprefix_ = None
3304 self.description = description
3305 self.description_nsprefix_ = None
3306 if memberdef is None:
3307 self.memberdef = []
3308 else:
3309 self.memberdef = memberdef
3310 self.memberdef_nsprefix_ = None
3311 def factory(*args_, **kwargs_):
3312 if CurrentSubclassModule_ is not None:
3313 subclass = getSubclassFromModule_(
3314 CurrentSubclassModule_, sectiondefType)
3315 if subclass is not None:
3316 return subclass(*args_, **kwargs_)
3317 if sectiondefType.subclass:
3318 return sectiondefType.subclass(*args_, **kwargs_)
3319 else:
3320 return sectiondefType(*args_, **kwargs_)
3321 factory = staticmethod(factory)
3323 return self.ns_prefix_
3324 def set_ns_prefix_(self, ns_prefix):
3325 self.ns_prefix_ = ns_prefix
3326 def get_header(self):
3327 return self.header
3328 def set_header(self, header):
3329 self.header = header
3331 return self.description
3332 def set_description(self, description):
3333 self.description = description
3334 def get_memberdef(self):
3335 return self.memberdef
3336 def set_memberdef(self, memberdef):
3337 self.memberdef = memberdef
3338 def add_memberdef(self, value):
3339 self.memberdef.append(value)
3340 def insert_memberdef_at(self, index, value):
3341 self.memberdef.insert(index, value)
3342 def replace_memberdef_at(self, index, value):
3343 self.memberdef[index] = value
3344 def get_kind(self):
3345 return self.kind
3346 def set_kind(self, kind):
3347 self.kind = kind
3348 def validate_DoxSectionKind(self, value):
3349 # Validate type DoxSectionKind, a restriction on xsd:string.
3350 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3351 if not isinstance(value, str):
3353 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3354 return False
3355 value = value
3356 enumerations = ['user-defined', 'public-type', 'public-func', 'public-attrib', 'public-slot', 'signal', 'dcop-func', 'property', 'event', 'public-static-func', 'public-static-attrib', 'protected-type', 'protected-func', 'protected-attrib', 'protected-slot', 'protected-static-func', 'protected-static-attrib', 'package-type', 'package-func', 'package-attrib', 'package-static-func', 'package-static-attrib', 'private-type', 'private-func', 'private-attrib', 'private-slot', 'private-static-func', 'private-static-attrib', 'friend', 'related', 'define', 'prototype', 'typedef', 'enum', 'func', 'var']
3357 if value not in enumerations:
3359 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxSectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3360 result = False
3361 def hasContent_(self):
3362 if (
3363 self.header is not None or
3364 self.description is not None or
3365 self.memberdef
3366 ):
3367 return True
3368 else:
3369 return False
3370 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='sectiondefType', pretty_print=True):
3371 imported_ns_def_ = GenerateDSNamespaceDefs_.get('sectiondefType')
3372 if imported_ns_def_ is not None:
3373 namespacedef_ = imported_ns_def_
3374 if pretty_print:
3375 eol_ = '\n'
3376 else:
3377 eol_ = ''
3378 if self.original_tagname_ is not None and name_ == 'sectiondefType':
3379 name_ = self.original_tagname_
3380 if UseCapturedNS_ and self.ns_prefix_:
3381 namespaceprefix_ = self.ns_prefix_ + ':'
3382 showIndent(outfile, level, pretty_print)
3383 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
3384 already_processed = set()
3385 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='sectiondefType')
3386 if self.hasContent_hasContent_():
3387 outfile.write('>%s' % (eol_, ))
3388 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='sectiondefType', pretty_print=pretty_print)
3389 showIndent(outfile, level, pretty_print)
3390 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
3391 else:
3392 outfile.write('/>%s' % (eol_, ))
3393 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='sectiondefType'):
3394 if self.kind is not None and 'kind' not in already_processed:
3395 already_processed.add('kind')
3396 outfile.write(' kind=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kind), input_name='kind')), ))
3397 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='sectiondefType', fromsubclass_=False, pretty_print=True):
3398 if pretty_print:
3399 eol_ = '\n'
3400 else:
3401 eol_ = ''
3402 if self.header is not None:
3403 namespaceprefix_ = self.header_nsprefix_ + ':' if (UseCapturedNS_ and self.header_nsprefix_) else ''
3404 showIndent(outfile, level, pretty_print)
3405 outfile.write('<%sheader>%s</%sheader>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.header), input_name='header')), namespaceprefix_ , eol_))
3406 if self.description is not None:
3407 namespaceprefix_ = self.description_nsprefix_ + ':' if (UseCapturedNS_ and self.description_nsprefix_) else ''
3408 self.description.export(outfile, level, namespaceprefix_, namespacedef_='', name_='description', pretty_print=pretty_print)
3409 for memberdef_ in self.memberdef:
3410 namespaceprefix_ = self.memberdef_nsprefix_ + ':' if (UseCapturedNS_ and self.memberdef_nsprefix_) else ''
3411 memberdef_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='memberdef', pretty_print=pretty_print)
3412 def build(self, node, gds_collector_=None):
3413 self.gds_collector_ = gds_collector_
3414 if SaveElementTreeNode:
3415 self.gds_elementtree_node_ = node
3416 already_processed = set()
3417 self.ns_prefix_ = node.prefix
3418 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
3419 for child in node:
3420 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
3421 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
3422 return self
3423 def buildAttributes(self, node, attrs, already_processed):
3424 value = find_attr_value_('kind', node)
3425 if value is not None and 'kind' not in already_processed:
3426 already_processed.add('kind')
3427 self.kind = value
3428 self.validate_DoxSectionKindvalidate_DoxSectionKind(self.kind) # validate type DoxSectionKind
3429 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
3430 if nodeName_ == 'header':
3431 value_ = child_.text
3432 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'header')
3433 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'header')
3434 self.header = value_
3435 self.header_nsprefix_ = child_.prefix
3436 elif nodeName_ == 'description':
3437 obj_ = descriptionType.factory(parent_object_=self)
3438 obj_.build(child_, gds_collector_=gds_collector_)
3439 self.description = obj_
3440 obj_.original_tagname_ = 'description'
3441 elif nodeName_ == 'memberdef':
3442 obj_ = memberdefType.factory(parent_object_=self)
3443 obj_.build(child_, gds_collector_=gds_collector_)
3444 self.memberdef.append(obj_)
3445 obj_.original_tagname_ = 'memberdef'
3446# end class sectiondefType
3447
3448
3450 __hash__ = GeneratedsSuper.__hash__
3451 subclass = None
3452 superclass = None
3453 def __init__(self, kind=None, id=None, prot=None, static=None, strong=None, const=None, explicit=None, inline=None, refqual=None, virt=None, volatile=None, mutable=None, noexcept=None, constexpr=None, readable=None, writable=None, initonly=None, settable=None, privatesettable=None, protectedsettable=None, gettable=None, privategettable=None, protectedgettable=None, final=None, sealed=None, new=None, add=None, remove=None, raise_=None, optional=None, required=None, accessor=None, attribute=None, property=None, readonly=None, bound=None, removable=None, constrained=None, transient=None, maybevoid=None, maybedefault=None, maybeambiguous=None, templateparamlist=None, type_=None, definition=None, argsstring=None, name=None, qualifiedname=None, read=None, write=None, bitfield=None, reimplements=None, reimplementedby=None, param=None, enumvalue=None, requiresclause=None, initializer=None, exceptions=None, briefdescription=None, detaileddescription=None, inbodydescription=None, location=None, references=None, referencedby=None, gds_collector_=None, **kwargs_):
3454 self.gds_collector_ = gds_collector_
3455 self.gds_elementtree_node_ = None
3456 self.original_tagname_ = None
3457 self.parent_object_ = kwargs_.get('parent_object_')
3458 self.ns_prefix_ = None
3459 self.kind = _cast(None, kind)
3460 self.kind_nsprefix_ = None
3461 self.id = _cast(None, id)
3462 self.id_nsprefix_ = None
3463 self.prot = _cast(None, prot)
3464 self.prot_nsprefix_ = None
3465 self.static = _cast(None, static)
3466 self.static_nsprefix_ = None
3467 self.strong = _cast(None, strong)
3468 self.strong_nsprefix_ = None
3469 self.const = _cast(None, const)
3470 self.const_nsprefix_ = None
3471 self.explicit = _cast(None, explicit)
3472 self.explicit_nsprefix_ = None
3473 self.inline = _cast(None, inline)
3474 self.inline_nsprefix_ = None
3475 self.refqual = _cast(None, refqual)
3476 self.refqual_nsprefix_ = None
3477 self.virt = _cast(None, virt)
3478 self.virt_nsprefix_ = None
3479 self.volatile = _cast(None, volatile)
3480 self.volatile_nsprefix_ = None
3481 self.mutable = _cast(None, mutable)
3482 self.mutable_nsprefix_ = None
3483 self.noexcept = _cast(None, noexcept)
3484 self.noexcept_nsprefix_ = None
3485 self.constexpr = _cast(None, constexpr)
3486 self.constexpr_nsprefix_ = None
3487 self.readable = _cast(None, readable)
3488 self.readable_nsprefix_ = None
3489 self.writable = _cast(None, writable)
3490 self.writable_nsprefix_ = None
3491 self.initonly = _cast(None, initonly)
3492 self.initonly_nsprefix_ = None
3493 self.settable = _cast(None, settable)
3494 self.settable_nsprefix_ = None
3495 self.privatesettable = _cast(None, privatesettable)
3496 self.privatesettable_nsprefix_ = None
3497 self.protectedsettable = _cast(None, protectedsettable)
3498 self.protectedsettable_nsprefix_ = None
3499 self.gettable = _cast(None, gettable)
3500 self.gettable_nsprefix_ = None
3501 self.privategettable = _cast(None, privategettable)
3502 self.privategettable_nsprefix_ = None
3503 self.protectedgettable = _cast(None, protectedgettable)
3504 self.protectedgettable_nsprefix_ = None
3505 self.final = _cast(None, final)
3506 self.final_nsprefix_ = None
3507 self.sealed = _cast(None, sealed)
3508 self.sealed_nsprefix_ = None
3509 self.new = _cast(None, new)
3510 self.new_nsprefix_ = None
3511 self.add = _cast(None, add)
3512 self.add_nsprefix_ = None
3513 self.remove = _cast(None, remove)
3514 self.remove_nsprefix_ = None
3515 self.raise_ = _cast(None, raise_)
3516 self.raise__nsprefix_ = None
3517 self.optional = _cast(None, optional)
3518 self.optional_nsprefix_ = None
3519 self.required = _cast(None, required)
3520 self.required_nsprefix_ = None
3521 self.accessor = _cast(None, accessor)
3522 self.accessor_nsprefix_ = None
3523 self.attribute = _cast(None, attribute)
3524 self.attribute_nsprefix_ = None
3525 self.property = _cast(None, property)
3526 self.property_nsprefix_ = None
3527 self.readonly = _cast(None, readonly)
3528 self.readonly_nsprefix_ = None
3529 self.bound = _cast(None, bound)
3530 self.bound_nsprefix_ = None
3531 self.removable = _cast(None, removable)
3532 self.removable_nsprefix_ = None
3533 self.constrained = _cast(None, constrained)
3534 self.constrained_nsprefix_ = None
3535 self.transient = _cast(None, transient)
3536 self.transient_nsprefix_ = None
3537 self.maybevoid = _cast(None, maybevoid)
3538 self.maybevoid_nsprefix_ = None
3539 self.maybedefault = _cast(None, maybedefault)
3540 self.maybedefault_nsprefix_ = None
3541 self.maybeambiguous = _cast(None, maybeambiguous)
3542 self.maybeambiguous_nsprefix_ = None
3543 self.templateparamlist = templateparamlist
3544 self.templateparamlist_nsprefix_ = None
3545 self.type_ = type_
3546 self.type__nsprefix_ = None
3547 self.definition = definition
3548 self.definition_nsprefix_ = None
3549 self.argsstring = argsstring
3550 self.argsstring_nsprefix_ = None
3551 self.name = name
3552 self.name_nsprefix_ = None
3553 self.qualifiedname = qualifiedname
3554 self.qualifiedname_nsprefix_ = None
3555 self.read = read
3556 self.read_nsprefix_ = None
3557 self.write = write
3558 self.write_nsprefix_ = None
3559 self.bitfield = bitfield
3560 self.bitfield_nsprefix_ = None
3561 if reimplements is None:
3562 self.reimplements = []
3563 else:
3564 self.reimplements = reimplements
3565 self.reimplements_nsprefix_ = None
3566 if reimplementedby is None:
3567 self.reimplementedby = []
3568 else:
3569 self.reimplementedby = reimplementedby
3570 self.reimplementedby_nsprefix_ = None
3571 if param is None:
3572 self.param = []
3573 else:
3574 self.param = param
3575 self.param_nsprefix_ = None
3576 if enumvalue is None:
3577 self.enumvalue = []
3578 else:
3579 self.enumvalue = enumvalue
3580 self.enumvalue_nsprefix_ = None
3581 self.requiresclause = requiresclause
3582 self.requiresclause_nsprefix_ = None
3583 self.initializer = initializer
3584 self.initializer_nsprefix_ = None
3585 self.exceptions = exceptions
3586 self.exceptions_nsprefix_ = None
3587 self.briefdescription = briefdescription
3588 self.briefdescription_nsprefix_ = None
3589 self.detaileddescription = detaileddescription
3591 self.inbodydescription = inbodydescription
3592 self.inbodydescription_nsprefix_ = None
3593 self.location = location
3594 self.location_nsprefix_ = None
3595 if references is None:
3596 self.references = []
3597 else:
3598 self.references = references
3599 self.references_nsprefix_ = None
3600 if referencedby is None:
3601 self.referencedby = []
3602 else:
3603 self.referencedby = referencedby
3604 self.referencedby_nsprefix_ = None
3605 def factory(*args_, **kwargs_):
3606 if CurrentSubclassModule_ is not None:
3607 subclass = getSubclassFromModule_(
3608 CurrentSubclassModule_, memberdefType)
3609 if subclass is not None:
3610 return subclass(*args_, **kwargs_)
3611 if memberdefType.subclass:
3612 return memberdefType.subclass(*args_, **kwargs_)
3613 else:
3614 return memberdefType(*args_, **kwargs_)
3615 factory = staticmethod(factory)
3617 return self.ns_prefix_
3618 def set_ns_prefix_(self, ns_prefix):
3619 self.ns_prefix_ = ns_prefix
3621 return self.templateparamlist
3622 def set_templateparamlist(self, templateparamlist):
3623 self.templateparamlist = templateparamlist
3624 def get_type(self):
3625 return self.type_
3626 def set_type(self, type_):
3627 self.type_ = type_
3629 return self.definition
3630 def set_definition(self, definition):
3631 self.definition = definition
3633 return self.argsstring
3634 def set_argsstring(self, argsstring):
3635 self.argsstring = argsstring
3636 def get_name(self):
3637 return self.name
3638 def set_name(self, name):
3639 self.name = name
3641 return self.qualifiedname
3642 def set_qualifiedname(self, qualifiedname):
3643 self.qualifiedname = qualifiedname
3644 def get_read(self):
3645 return self.read
3646 def set_read(self, read):
3647 self.read = read
3648 def get_write(self):
3649 return self.write
3650 def set_write(self, write):
3651 self.write = write
3652 def get_bitfield(self):
3653 return self.bitfield
3654 def set_bitfield(self, bitfield):
3655 self.bitfield = bitfield
3657 return self.reimplements
3658 def set_reimplements(self, reimplements):
3659 self.reimplements = reimplements
3660 def add_reimplements(self, value):
3661 self.reimplements.append(value)
3662 def insert_reimplements_at(self, index, value):
3663 self.reimplements.insert(index, value)
3664 def replace_reimplements_at(self, index, value):
3665 self.reimplements[index] = value
3667 return self.reimplementedby
3668 def set_reimplementedby(self, reimplementedby):
3669 self.reimplementedby = reimplementedby
3670 def add_reimplementedby(self, value):
3671 self.reimplementedby.append(value)
3672 def insert_reimplementedby_at(self, index, value):
3673 self.reimplementedby.insert(index, value)
3674 def replace_reimplementedby_at(self, index, value):
3675 self.reimplementedby[index] = value
3676 def get_param(self):
3677 return self.param
3678 def set_param(self, param):
3679 self.param = param
3680 def add_param(self, value):
3681 self.param.append(value)
3682 def insert_param_at(self, index, value):
3683 self.param.insert(index, value)
3684 def replace_param_at(self, index, value):
3685 self.param[index] = value
3686 def get_enumvalue(self):
3687 return self.enumvalue
3688 def set_enumvalue(self, enumvalue):
3689 self.enumvalue = enumvalue
3690 def add_enumvalue(self, value):
3691 self.enumvalue.append(value)
3692 def insert_enumvalue_at(self, index, value):
3693 self.enumvalue.insert(index, value)
3694 def replace_enumvalue_at(self, index, value):
3695 self.enumvalue[index] = value
3697 return self.requiresclause
3698 def set_requiresclause(self, requiresclause):
3699 self.requiresclause = requiresclause
3701 return self.initializer
3702 def set_initializer(self, initializer):
3703 self.initializer = initializer
3705 return self.exceptions
3706 def set_exceptions(self, exceptions):
3707 self.exceptions = exceptions
3709 return self.briefdescription
3710 def set_briefdescription(self, briefdescription):
3711 self.briefdescription = briefdescription
3713 return self.detaileddescription
3714 def set_detaileddescription(self, detaileddescription):
3715 self.detaileddescription = detaileddescription
3717 return self.inbodydescription
3718 def set_inbodydescription(self, inbodydescription):
3719 self.inbodydescription = inbodydescription
3720 def get_location(self):
3721 return self.location
3722 def set_location(self, location):
3723 self.location = location
3725 return self.references
3726 def set_references(self, references):
3727 self.references = references
3728 def add_references(self, value):
3729 self.references.append(value)
3730 def insert_references_at(self, index, value):
3731 self.references.insert(index, value)
3732 def replace_references_at(self, index, value):
3733 self.references[index] = value
3735 return self.referencedby
3736 def set_referencedby(self, referencedby):
3737 self.referencedby = referencedby
3738 def add_referencedby(self, value):
3739 self.referencedby.append(value)
3740 def insert_referencedby_at(self, index, value):
3741 self.referencedby.insert(index, value)
3742 def replace_referencedby_at(self, index, value):
3743 self.referencedby[index] = value
3744 def get_kind(self):
3745 return self.kind
3746 def set_kind(self, kind):
3747 self.kind = kind
3748 def get_id(self):
3749 return self.id
3750 def set_id(self, id):
3751 self.id = id
3752 def get_prot(self):
3753 return self.prot
3754 def set_prot(self, prot):
3755 self.prot = prot
3756 def get_static(self):
3757 return self.static
3758 def set_static(self, static):
3759 self.static = static
3760 def get_strong(self):
3761 return self.strong
3762 def set_strong(self, strong):
3763 self.strong = strong
3764 def get_const(self):
3765 return self.const
3766 def set_const(self, const):
3767 self.const = const
3768 def get_explicit(self):
3769 return self.explicit
3770 def set_explicit(self, explicit):
3771 self.explicit = explicit
3772 def get_inline(self):
3773 return self.inline
3774 def set_inline(self, inline):
3775 self.inline = inline
3776 def get_refqual(self):
3777 return self.refqual
3778 def set_refqual(self, refqual):
3779 self.refqual = refqual
3780 def get_virt(self):
3781 return self.virt
3782 def set_virt(self, virt):
3783 self.virt = virt
3784 def get_volatile(self):
3785 return self.volatile
3786 def set_volatile(self, volatile):
3787 self.volatile = volatile
3788 def get_mutable(self):
3789 return self.mutable
3790 def set_mutable(self, mutable):
3791 self.mutable = mutable
3792 def get_noexcept(self):
3793 return self.noexcept
3794 def set_noexcept(self, noexcept):
3795 self.noexcept = noexcept
3796 def get_constexpr(self):
3797 return self.constexpr
3798 def set_constexpr(self, constexpr):
3799 self.constexpr = constexpr
3800 def get_readable(self):
3801 return self.readable
3802 def set_readable(self, readable):
3803 self.readable = readable
3804 def get_writable(self):
3805 return self.writable
3806 def set_writable(self, writable):
3807 self.writable = writable
3808 def get_initonly(self):
3809 return self.initonly
3810 def set_initonly(self, initonly):
3811 self.initonly = initonly
3812 def get_settable(self):
3813 return self.settable
3814 def set_settable(self, settable):
3815 self.settable = settable
3817 return self.privatesettable
3818 def set_privatesettable(self, privatesettable):
3819 self.privatesettable = privatesettable
3821 return self.protectedsettable
3822 def set_protectedsettable(self, protectedsettable):
3823 self.protectedsettable = protectedsettable
3824 def get_gettable(self):
3825 return self.gettable
3826 def set_gettable(self, gettable):
3827 self.gettable = gettable
3829 return self.privategettable
3830 def set_privategettable(self, privategettable):
3831 self.privategettable = privategettable
3833 return self.protectedgettable
3834 def set_protectedgettable(self, protectedgettable):
3835 self.protectedgettable = protectedgettable
3836 def get_final(self):
3837 return self.final
3838 def set_final(self, final):
3839 self.final = final
3840 def get_sealed(self):
3841 return self.sealed
3842 def set_sealed(self, sealed):
3843 self.sealed = sealed
3844 def get_new(self):
3845 return self.new
3846 def set_new(self, new):
3847 self.new = new
3848 def get_add(self):
3849 return self.add
3850 def set_add(self, add):
3851 self.add = add
3852 def get_remove(self):
3853 return self.remove
3854 def set_remove(self, remove):
3855 self.remove = remove
3856 def get_raise(self):
3857 return self.raise_
3858 def set_raise(self, raise_):
3859 self.raise_ = raise_
3860 def get_optional(self):
3861 return self.optional
3862 def set_optional(self, optional):
3863 self.optional = optional
3864 def get_required(self):
3865 return self.required
3866 def set_required(self, required):
3867 self.required = required
3868 def get_accessor(self):
3869 return self.accessor
3870 def set_accessor(self, accessor):
3871 self.accessor = accessor
3872 def get_attribute(self):
3873 return self.attribute
3874 def set_attribute(self, attribute):
3875 self.attribute = attribute
3876 def get_property(self):
3877 return self.property
3878 def set_property(self, property):
3879 self.property = property
3880 def get_readonly(self):
3881 return self.readonly
3882 def set_readonly(self, readonly):
3883 self.readonly = readonly
3884 def get_bound(self):
3885 return self.bound
3886 def set_bound(self, bound):
3887 self.bound = bound
3888 def get_removable(self):
3889 return self.removable
3890 def set_removable(self, removable):
3891 self.removable = removable
3893 return self.constrained
3894 def set_constrained(self, constrained):
3895 self.constrained = constrained
3896 def get_transient(self):
3897 return self.transient
3898 def set_transient(self, transient):
3899 self.transient = transient
3900 def get_maybevoid(self):
3901 return self.maybevoid
3902 def set_maybevoid(self, maybevoid):
3903 self.maybevoid = maybevoid
3905 return self.maybedefault
3906 def set_maybedefault(self, maybedefault):
3907 self.maybedefault = maybedefault
3909 return self.maybeambiguous
3910 def set_maybeambiguous(self, maybeambiguous):
3911 self.maybeambiguous = maybeambiguous
3912 def validate_DoxMemberKind(self, value):
3913 # Validate type DoxMemberKind, a restriction on xsd:string.
3914 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3915 if not isinstance(value, str):
3917 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3918 return False
3919 value = value
3920 enumerations = ['define', 'property', 'event', 'variable', 'typedef', 'enum', 'function', 'signal', 'prototype', 'friend', 'dcop', 'slot', 'interface', 'service']
3921 if value not in enumerations:
3923 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxMemberKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3924 result = False
3926 # Validate type DoxProtectionKind, a restriction on xsd:string.
3927 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3928 if not isinstance(value, str):
3930 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3931 return False
3932 value = value
3933 enumerations = ['public', 'protected', 'private', 'package']
3934 if value not in enumerations:
3936 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxProtectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3937 result = False
3938 def validate_DoxBool(self, value):
3939 # Validate type DoxBool, a restriction on xsd:string.
3940 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3941 if not isinstance(value, str):
3943 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3944 return False
3945 value = value
3946 enumerations = ['yes', 'no']
3947 if value not in enumerations:
3949 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3950 result = False
3952 # Validate type DoxRefQualifierKind, a restriction on xsd:string.
3953 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3954 if not isinstance(value, str):
3956 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3957 return False
3958 value = value
3959 enumerations = ['lvalue', 'rvalue']
3960 if value not in enumerations:
3962 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxRefQualifierKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3963 result = False
3964 def validate_DoxVirtualKind(self, value):
3965 # Validate type DoxVirtualKind, a restriction on xsd:string.
3966 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3967 if not isinstance(value, str):
3969 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3970 return False
3971 value = value
3972 enumerations = ['non-virtual', 'virtual', 'pure-virtual']
3973 if value not in enumerations:
3975 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxVirtualKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3976 result = False
3977 def validate_DoxAccessor(self, value):
3978 # Validate type DoxAccessor, a restriction on xsd:string.
3979 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
3980 if not isinstance(value, str):
3982 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
3983 return False
3984 value = value
3985 enumerations = ['retain', 'copy', 'assign', 'weak', 'strong', 'unretained']
3986 if value not in enumerations:
3988 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxAccessor' % {"value" : encode_str_2_3(value), "lineno": lineno} )
3989 result = False
3990 def hasContent_(self):
3991 if (
3992 self.templateparamlist is not None or
3993 self.type_ is not None or
3994 self.definition is not None or
3995 self.argsstring is not None or
3996 self.name is not None or
3997 self.qualifiedname is not None or
3998 self.read is not None or
3999 self.write is not None or
4000 self.bitfield is not None or
4001 self.reimplements or
4002 self.reimplementedby or
4003 self.param or
4004 self.enumvalue or
4005 self.requiresclause is not None or
4006 self.initializer is not None or
4007 self.exceptions is not None or
4008 self.briefdescription is not None or
4009 self.detaileddescription is not None or
4010 self.inbodydescription is not None or
4011 self.location is not None or
4012 self.references or
4013 self.referencedby
4014 ):
4015 return True
4016 else:
4017 return False
4018 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberdefType', pretty_print=True):
4019 imported_ns_def_ = GenerateDSNamespaceDefs_.get('memberdefType')
4020 if imported_ns_def_ is not None:
4021 namespacedef_ = imported_ns_def_
4022 if pretty_print:
4023 eol_ = '\n'
4024 else:
4025 eol_ = ''
4026 if self.original_tagname_ is not None and name_ == 'memberdefType':
4027 name_ = self.original_tagname_
4028 if UseCapturedNS_ and self.ns_prefix_:
4029 namespaceprefix_ = self.ns_prefix_ + ':'
4030 showIndent(outfile, level, pretty_print)
4031 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
4032 already_processed = set()
4033 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='memberdefType')
4034 if self.hasContent_hasContent_():
4035 outfile.write('>%s' % (eol_, ))
4036 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='memberdefType', pretty_print=pretty_print)
4037 showIndent(outfile, level, pretty_print)
4038 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
4039 else:
4040 outfile.write('/>%s' % (eol_, ))
4041 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='memberdefType'):
4042 if self.kind is not None and 'kind' not in already_processed:
4043 already_processed.add('kind')
4044 outfile.write(' kind=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kind), input_name='kind')), ))
4045 if self.id is not None and 'id' not in already_processed:
4046 already_processed.add('id')
4047 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
4048 if self.prot is not None and 'prot' not in already_processed:
4049 already_processed.add('prot')
4050 outfile.write(' prot=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.prot), input_name='prot')), ))
4051 if self.static is not None and 'static' not in already_processed:
4052 already_processed.add('static')
4053 outfile.write(' static=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.static), input_name='static')), ))
4054 if self.strong is not None and 'strong' not in already_processed:
4055 already_processed.add('strong')
4056 outfile.write(' strong=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.strong), input_name='strong')), ))
4057 if self.const is not None and 'const' not in already_processed:
4058 already_processed.add('const')
4059 outfile.write(' const=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.const), input_name='const')), ))
4060 if self.explicit is not None and 'explicit' not in already_processed:
4061 already_processed.add('explicit')
4062 outfile.write(' explicit=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.explicit), input_name='explicit')), ))
4063 if self.inline is not None and 'inline' not in already_processed:
4064 already_processed.add('inline')
4065 outfile.write(' inline=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.inline), input_name='inline')), ))
4066 if self.refqual is not None and 'refqual' not in already_processed:
4067 already_processed.add('refqual')
4068 outfile.write(' refqual=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refqual), input_name='refqual')), ))
4069 if self.virt is not None and 'virt' not in already_processed:
4070 already_processed.add('virt')
4071 outfile.write(' virt=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.virt), input_name='virt')), ))
4072 if self.volatile is not None and 'volatile' not in already_processed:
4073 already_processed.add('volatile')
4074 outfile.write(' volatile=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.volatile), input_name='volatile')), ))
4075 if self.mutable is not None and 'mutable' not in already_processed:
4076 already_processed.add('mutable')
4077 outfile.write(' mutable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.mutable), input_name='mutable')), ))
4078 if self.noexcept is not None and 'noexcept' not in already_processed:
4079 already_processed.add('noexcept')
4080 outfile.write(' noexcept=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.noexcept), input_name='noexcept')), ))
4081 if self.constexpr is not None and 'constexpr' not in already_processed:
4082 already_processed.add('constexpr')
4083 outfile.write(' constexpr=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.constexpr), input_name='constexpr')), ))
4084 if self.readable is not None and 'readable' not in already_processed:
4085 already_processed.add('readable')
4086 outfile.write(' readable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.readable), input_name='readable')), ))
4087 if self.writable is not None and 'writable' not in already_processed:
4088 already_processed.add('writable')
4089 outfile.write(' writable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.writable), input_name='writable')), ))
4090 if self.initonly is not None and 'initonly' not in already_processed:
4091 already_processed.add('initonly')
4092 outfile.write(' initonly=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.initonly), input_name='initonly')), ))
4093 if self.settable is not None and 'settable' not in already_processed:
4094 already_processed.add('settable')
4095 outfile.write(' settable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.settable), input_name='settable')), ))
4096 if self.privatesettable is not None and 'privatesettable' not in already_processed:
4097 already_processed.add('privatesettable')
4098 outfile.write(' privatesettable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.privatesettable), input_name='privatesettable')), ))
4099 if self.protectedsettable is not None and 'protectedsettable' not in already_processed:
4100 already_processed.add('protectedsettable')
4101 outfile.write(' protectedsettable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.protectedsettable), input_name='protectedsettable')), ))
4102 if self.gettable is not None and 'gettable' not in already_processed:
4103 already_processed.add('gettable')
4104 outfile.write(' gettable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.gettable), input_name='gettable')), ))
4105 if self.privategettable is not None and 'privategettable' not in already_processed:
4106 already_processed.add('privategettable')
4107 outfile.write(' privategettable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.privategettable), input_name='privategettable')), ))
4108 if self.protectedgettable is not None and 'protectedgettable' not in already_processed:
4109 already_processed.add('protectedgettable')
4110 outfile.write(' protectedgettable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.protectedgettable), input_name='protectedgettable')), ))
4111 if self.final is not None and 'final' not in already_processed:
4112 already_processed.add('final')
4113 outfile.write(' final=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.final), input_name='final')), ))
4114 if self.sealed is not None and 'sealed' not in already_processed:
4115 already_processed.add('sealed')
4116 outfile.write(' sealed=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.sealed), input_name='sealed')), ))
4117 if self.new is not None and 'new' not in already_processed:
4118 already_processed.add('new')
4119 outfile.write(' new=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.new), input_name='new')), ))
4120 if self.add is not None and 'add' not in already_processed:
4121 already_processed.add('add')
4122 outfile.write(' add=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.add), input_name='add')), ))
4123 if self.remove is not None and 'remove' not in already_processed:
4124 already_processed.add('remove')
4125 outfile.write(' remove=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.remove), input_name='remove')), ))
4126 if self.raise_ is not None and 'raise_' not in already_processed:
4127 already_processed.add('raise_')
4128 outfile.write(' raise=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.raise_), input_name='raise')), ))
4129 if self.optional is not None and 'optional' not in already_processed:
4130 already_processed.add('optional')
4131 outfile.write(' optional=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.optional), input_name='optional')), ))
4132 if self.required is not None and 'required' not in already_processed:
4133 already_processed.add('required')
4134 outfile.write(' required=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.required), input_name='required')), ))
4135 if self.accessor is not None and 'accessor' not in already_processed:
4136 already_processed.add('accessor')
4137 outfile.write(' accessor=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.accessor), input_name='accessor')), ))
4138 if self.attribute is not None and 'attribute' not in already_processed:
4139 already_processed.add('attribute')
4140 outfile.write(' attribute=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.attribute), input_name='attribute')), ))
4141 if self.property is not None and 'property' not in already_processed:
4142 already_processed.add('property')
4143 outfile.write(' property=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.property), input_name='property')), ))
4144 if self.readonly is not None and 'readonly' not in already_processed:
4145 already_processed.add('readonly')
4146 outfile.write(' readonly=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.readonly), input_name='readonly')), ))
4147 if self.bound is not None and 'bound' not in already_processed:
4148 already_processed.add('bound')
4149 outfile.write(' bound=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.bound), input_name='bound')), ))
4150 if self.removable is not None and 'removable' not in already_processed:
4151 already_processed.add('removable')
4152 outfile.write(' removable=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.removable), input_name='removable')), ))
4153 if self.constrained is not None and 'constrained' not in already_processed:
4154 already_processed.add('constrained')
4155 outfile.write(' constrained=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.constrained), input_name='constrained')), ))
4156 if self.transient is not None and 'transient' not in already_processed:
4157 already_processed.add('transient')
4158 outfile.write(' transient=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.transient), input_name='transient')), ))
4159 if self.maybevoid is not None and 'maybevoid' not in already_processed:
4160 already_processed.add('maybevoid')
4161 outfile.write(' maybevoid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.maybevoid), input_name='maybevoid')), ))
4162 if self.maybedefault is not None and 'maybedefault' not in already_processed:
4163 already_processed.add('maybedefault')
4164 outfile.write(' maybedefault=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.maybedefault), input_name='maybedefault')), ))
4165 if self.maybeambiguous is not None and 'maybeambiguous' not in already_processed:
4166 already_processed.add('maybeambiguous')
4167 outfile.write(' maybeambiguous=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.maybeambiguous), input_name='maybeambiguous')), ))
4168 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberdefType', fromsubclass_=False, pretty_print=True):
4169 if pretty_print:
4170 eol_ = '\n'
4171 else:
4172 eol_ = ''
4173 if self.templateparamlist is not None:
4174 namespaceprefix_ = self.templateparamlist_nsprefix_ + ':' if (UseCapturedNS_ and self.templateparamlist_nsprefix_) else ''
4175 self.templateparamlist.export(outfile, level, namespaceprefix_, namespacedef_='', name_='templateparamlist', pretty_print=pretty_print)
4176 if self.type_ is not None:
4177 namespaceprefix_ = self.type__nsprefix_ + ':' if (UseCapturedNS_ and self.type__nsprefix_) else ''
4178 self.type_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='type', pretty_print=pretty_print)
4179 if self.definition is not None:
4180 namespaceprefix_ = self.definition_nsprefix_ + ':' if (UseCapturedNS_ and self.definition_nsprefix_) else ''
4181 showIndent(outfile, level, pretty_print)
4182 outfile.write('<%sdefinition>%s</%sdefinition>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.definition), input_name='definition')), namespaceprefix_ , eol_))
4183 if self.argsstring is not None:
4184 namespaceprefix_ = self.argsstring_nsprefix_ + ':' if (UseCapturedNS_ and self.argsstring_nsprefix_) else ''
4185 showIndent(outfile, level, pretty_print)
4186 outfile.write('<%sargsstring>%s</%sargsstring>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.argsstring), input_name='argsstring')), namespaceprefix_ , eol_))
4187 if self.name is not None:
4188 namespaceprefix_ = self.name_nsprefix_ + ':' if (UseCapturedNS_ and self.name_nsprefix_) else ''
4189 showIndent(outfile, level, pretty_print)
4190 outfile.write('<%sname>%s</%sname>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.name), input_name='name')), namespaceprefix_ , eol_))
4191 if self.qualifiedname is not None:
4192 namespaceprefix_ = self.qualifiedname_nsprefix_ + ':' if (UseCapturedNS_ and self.qualifiedname_nsprefix_) else ''
4193 showIndent(outfile, level, pretty_print)
4194 outfile.write('<%squalifiedname>%s</%squalifiedname>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.qualifiedname), input_name='qualifiedname')), namespaceprefix_ , eol_))
4195 if self.read is not None:
4196 namespaceprefix_ = self.read_nsprefix_ + ':' if (UseCapturedNS_ and self.read_nsprefix_) else ''
4197 showIndent(outfile, level, pretty_print)
4198 outfile.write('<%sread>%s</%sread>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.read), input_name='read')), namespaceprefix_ , eol_))
4199 if self.write is not None:
4200 namespaceprefix_ = self.write_nsprefix_ + ':' if (UseCapturedNS_ and self.write_nsprefix_) else ''
4201 showIndent(outfile, level, pretty_print)
4202 outfile.write('<%swrite>%s</%swrite>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.write), input_name='write')), namespaceprefix_ , eol_))
4203 if self.bitfield is not None:
4204 namespaceprefix_ = self.bitfield_nsprefix_ + ':' if (UseCapturedNS_ and self.bitfield_nsprefix_) else ''
4205 showIndent(outfile, level, pretty_print)
4206 outfile.write('<%sbitfield>%s</%sbitfield>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.bitfield), input_name='bitfield')), namespaceprefix_ , eol_))
4207 for reimplements_ in self.reimplements:
4208 namespaceprefix_ = self.reimplements_nsprefix_ + ':' if (UseCapturedNS_ and self.reimplements_nsprefix_) else ''
4209 reimplements_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='reimplements', pretty_print=pretty_print)
4210 for reimplementedby_ in self.reimplementedby:
4211 namespaceprefix_ = self.reimplementedby_nsprefix_ + ':' if (UseCapturedNS_ and self.reimplementedby_nsprefix_) else ''
4212 reimplementedby_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='reimplementedby', pretty_print=pretty_print)
4213 for param_ in self.param:
4214 namespaceprefix_ = self.param_nsprefix_ + ':' if (UseCapturedNS_ and self.param_nsprefix_) else ''
4215 param_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='param', pretty_print=pretty_print)
4216 for enumvalue_ in self.enumvalue:
4217 namespaceprefix_ = self.enumvalue_nsprefix_ + ':' if (UseCapturedNS_ and self.enumvalue_nsprefix_) else ''
4218 enumvalue_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='enumvalue', pretty_print=pretty_print)
4219 if self.requiresclause is not None:
4220 namespaceprefix_ = self.requiresclause_nsprefix_ + ':' if (UseCapturedNS_ and self.requiresclause_nsprefix_) else ''
4221 self.requiresclause.export(outfile, level, namespaceprefix_, namespacedef_='', name_='requiresclause', pretty_print=pretty_print)
4222 if self.initializer is not None:
4223 namespaceprefix_ = self.initializer_nsprefix_ + ':' if (UseCapturedNS_ and self.initializer_nsprefix_) else ''
4224 self.initializer.export(outfile, level, namespaceprefix_, namespacedef_='', name_='initializer', pretty_print=pretty_print)
4225 if self.exceptions is not None:
4226 namespaceprefix_ = self.exceptions_nsprefix_ + ':' if (UseCapturedNS_ and self.exceptions_nsprefix_) else ''
4227 self.exceptions.export(outfile, level, namespaceprefix_, namespacedef_='', name_='exceptions', pretty_print=pretty_print)
4228 if self.briefdescription is not None:
4229 namespaceprefix_ = self.briefdescription_nsprefix_ + ':' if (UseCapturedNS_ and self.briefdescription_nsprefix_) else ''
4230 self.briefdescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='briefdescription', pretty_print=pretty_print)
4231 if self.detaileddescription is not None:
4232 namespaceprefix_ = self.detaileddescription_nsprefix_ + ':' if (UseCapturedNS_ and self.detaileddescription_nsprefix_) else ''
4233 self.detaileddescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='detaileddescription', pretty_print=pretty_print)
4234 if self.inbodydescription is not None:
4235 namespaceprefix_ = self.inbodydescription_nsprefix_ + ':' if (UseCapturedNS_ and self.inbodydescription_nsprefix_) else ''
4236 self.inbodydescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='inbodydescription', pretty_print=pretty_print)
4237 if self.location is not None:
4238 namespaceprefix_ = self.location_nsprefix_ + ':' if (UseCapturedNS_ and self.location_nsprefix_) else ''
4239 self.location.export(outfile, level, namespaceprefix_, namespacedef_='', name_='location', pretty_print=pretty_print)
4240 for references_ in self.references:
4241 namespaceprefix_ = self.references_nsprefix_ + ':' if (UseCapturedNS_ and self.references_nsprefix_) else ''
4242 references_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='references', pretty_print=pretty_print)
4243 for referencedby_ in self.referencedby:
4244 namespaceprefix_ = self.referencedby_nsprefix_ + ':' if (UseCapturedNS_ and self.referencedby_nsprefix_) else ''
4245 referencedby_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='referencedby', pretty_print=pretty_print)
4246 def build(self, node, gds_collector_=None):
4247 self.gds_collector_ = gds_collector_
4248 if SaveElementTreeNode:
4249 self.gds_elementtree_node_ = node
4250 already_processed = set()
4251 self.ns_prefix_ = node.prefix
4252 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
4253 for child in node:
4254 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4255 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4256 return self
4257 def buildAttributes(self, node, attrs, already_processed):
4258 value = find_attr_value_('kind', node)
4259 if value is not None and 'kind' not in already_processed:
4260 already_processed.add('kind')
4261 self.kind = value
4262 self.validate_DoxMemberKindvalidate_DoxMemberKind(self.kind) # validate type DoxMemberKind
4263 value = find_attr_value_('id', node)
4264 if value is not None and 'id' not in already_processed:
4265 already_processed.add('id')
4266 self.id = value
4267 value = find_attr_value_('prot', node)
4268 if value is not None and 'prot' not in already_processed:
4269 already_processed.add('prot')
4270 self.prot = value
4271 self.validate_DoxProtectionKindvalidate_DoxProtectionKind(self.prot) # validate type DoxProtectionKind
4272 value = find_attr_value_('static', node)
4273 if value is not None and 'static' not in already_processed:
4274 already_processed.add('static')
4275 self.static = value
4276 self.validate_DoxBoolvalidate_DoxBool(self.static) # validate type DoxBool
4277 value = find_attr_value_('strong', node)
4278 if value is not None and 'strong' not in already_processed:
4279 already_processed.add('strong')
4280 self.strong = value
4281 self.validate_DoxBoolvalidate_DoxBool(self.strong) # validate type DoxBool
4282 value = find_attr_value_('const', node)
4283 if value is not None and 'const' not in already_processed:
4284 already_processed.add('const')
4285 self.const = value
4286 self.validate_DoxBoolvalidate_DoxBool(self.const) # validate type DoxBool
4287 value = find_attr_value_('explicit', node)
4288 if value is not None and 'explicit' not in already_processed:
4289 already_processed.add('explicit')
4290 self.explicit = value
4291 self.validate_DoxBoolvalidate_DoxBool(self.explicit) # validate type DoxBool
4292 value = find_attr_value_('inline', node)
4293 if value is not None and 'inline' not in already_processed:
4294 already_processed.add('inline')
4295 self.inline = value
4296 self.validate_DoxBoolvalidate_DoxBool(self.inline) # validate type DoxBool
4297 value = find_attr_value_('refqual', node)
4298 if value is not None and 'refqual' not in already_processed:
4299 already_processed.add('refqual')
4300 self.refqual = value
4301 self.validate_DoxRefQualifierKindvalidate_DoxRefQualifierKind(self.refqual) # validate type DoxRefQualifierKind
4302 value = find_attr_value_('virt', node)
4303 if value is not None and 'virt' not in already_processed:
4304 already_processed.add('virt')
4305 self.virt = value
4306 self.validate_DoxVirtualKindvalidate_DoxVirtualKind(self.virt) # validate type DoxVirtualKind
4307 value = find_attr_value_('volatile', node)
4308 if value is not None and 'volatile' not in already_processed:
4309 already_processed.add('volatile')
4310 self.volatile = value
4311 self.validate_DoxBoolvalidate_DoxBool(self.volatile) # validate type DoxBool
4312 value = find_attr_value_('mutable', node)
4313 if value is not None and 'mutable' not in already_processed:
4314 already_processed.add('mutable')
4315 self.mutable = value
4316 self.validate_DoxBoolvalidate_DoxBool(self.mutable) # validate type DoxBool
4317 value = find_attr_value_('noexcept', node)
4318 if value is not None and 'noexcept' not in already_processed:
4319 already_processed.add('noexcept')
4320 self.noexcept = value
4321 self.validate_DoxBoolvalidate_DoxBool(self.noexcept) # validate type DoxBool
4322 value = find_attr_value_('constexpr', node)
4323 if value is not None and 'constexpr' not in already_processed:
4324 already_processed.add('constexpr')
4325 self.constexpr = value
4326 self.validate_DoxBoolvalidate_DoxBool(self.constexpr) # validate type DoxBool
4327 value = find_attr_value_('readable', node)
4328 if value is not None and 'readable' not in already_processed:
4329 already_processed.add('readable')
4330 self.readable = value
4331 self.validate_DoxBoolvalidate_DoxBool(self.readable) # validate type DoxBool
4332 value = find_attr_value_('writable', node)
4333 if value is not None and 'writable' not in already_processed:
4334 already_processed.add('writable')
4335 self.writable = value
4336 self.validate_DoxBoolvalidate_DoxBool(self.writable) # validate type DoxBool
4337 value = find_attr_value_('initonly', node)
4338 if value is not None and 'initonly' not in already_processed:
4339 already_processed.add('initonly')
4340 self.initonly = value
4341 self.validate_DoxBoolvalidate_DoxBool(self.initonly) # validate type DoxBool
4342 value = find_attr_value_('settable', node)
4343 if value is not None and 'settable' not in already_processed:
4344 already_processed.add('settable')
4345 self.settable = value
4346 self.validate_DoxBoolvalidate_DoxBool(self.settable) # validate type DoxBool
4347 value = find_attr_value_('privatesettable', node)
4348 if value is not None and 'privatesettable' not in already_processed:
4349 already_processed.add('privatesettable')
4350 self.privatesettable = value
4351 self.validate_DoxBoolvalidate_DoxBool(self.privatesettable) # validate type DoxBool
4352 value = find_attr_value_('protectedsettable', node)
4353 if value is not None and 'protectedsettable' not in already_processed:
4354 already_processed.add('protectedsettable')
4355 self.protectedsettable = value
4356 self.validate_DoxBoolvalidate_DoxBool(self.protectedsettable) # validate type DoxBool
4357 value = find_attr_value_('gettable', node)
4358 if value is not None and 'gettable' not in already_processed:
4359 already_processed.add('gettable')
4360 self.gettable = value
4361 self.validate_DoxBoolvalidate_DoxBool(self.gettable) # validate type DoxBool
4362 value = find_attr_value_('privategettable', node)
4363 if value is not None and 'privategettable' not in already_processed:
4364 already_processed.add('privategettable')
4365 self.privategettable = value
4366 self.validate_DoxBoolvalidate_DoxBool(self.privategettable) # validate type DoxBool
4367 value = find_attr_value_('protectedgettable', node)
4368 if value is not None and 'protectedgettable' not in already_processed:
4369 already_processed.add('protectedgettable')
4370 self.protectedgettable = value
4371 self.validate_DoxBoolvalidate_DoxBool(self.protectedgettable) # validate type DoxBool
4372 value = find_attr_value_('final', node)
4373 if value is not None and 'final' not in already_processed:
4374 already_processed.add('final')
4375 self.final = value
4376 self.validate_DoxBoolvalidate_DoxBool(self.final) # validate type DoxBool
4377 value = find_attr_value_('sealed', node)
4378 if value is not None and 'sealed' not in already_processed:
4379 already_processed.add('sealed')
4380 self.sealed = value
4381 self.validate_DoxBoolvalidate_DoxBool(self.sealed) # validate type DoxBool
4382 value = find_attr_value_('new', node)
4383 if value is not None and 'new' not in already_processed:
4384 already_processed.add('new')
4385 self.new = value
4386 self.validate_DoxBoolvalidate_DoxBool(self.new) # validate type DoxBool
4387 value = find_attr_value_('add', node)
4388 if value is not None and 'add' not in already_processed:
4389 already_processed.add('add')
4390 self.add = value
4391 self.validate_DoxBoolvalidate_DoxBool(self.add) # validate type DoxBool
4392 value = find_attr_value_('remove', node)
4393 if value is not None and 'remove' not in already_processed:
4394 already_processed.add('remove')
4395 self.remove = value
4396 self.validate_DoxBoolvalidate_DoxBool(self.remove) # validate type DoxBool
4397 value = find_attr_value_('raise', node)
4398 if value is not None and 'raise' not in already_processed:
4399 already_processed.add('raise')
4400 self.raise_ = value
4401 self.validate_DoxBoolvalidate_DoxBool(self.raise_) # validate type DoxBool
4402 value = find_attr_value_('optional', node)
4403 if value is not None and 'optional' not in already_processed:
4404 already_processed.add('optional')
4405 self.optional = value
4406 self.validate_DoxBoolvalidate_DoxBool(self.optional) # validate type DoxBool
4407 value = find_attr_value_('required', node)
4408 if value is not None and 'required' not in already_processed:
4409 already_processed.add('required')
4410 self.required = value
4411 self.validate_DoxBoolvalidate_DoxBool(self.required) # validate type DoxBool
4412 value = find_attr_value_('accessor', node)
4413 if value is not None and 'accessor' not in already_processed:
4414 already_processed.add('accessor')
4415 self.accessor = value
4416 self.validate_DoxAccessorvalidate_DoxAccessor(self.accessor) # validate type DoxAccessor
4417 value = find_attr_value_('attribute', node)
4418 if value is not None and 'attribute' not in already_processed:
4419 already_processed.add('attribute')
4420 self.attribute = value
4421 self.validate_DoxBoolvalidate_DoxBool(self.attribute) # validate type DoxBool
4422 value = find_attr_value_('property', node)
4423 if value is not None and 'property' not in already_processed:
4424 already_processed.add('property')
4425 self.property = value
4426 self.validate_DoxBoolvalidate_DoxBool(self.property) # validate type DoxBool
4427 value = find_attr_value_('readonly', node)
4428 if value is not None and 'readonly' not in already_processed:
4429 already_processed.add('readonly')
4430 self.readonly = value
4431 self.validate_DoxBoolvalidate_DoxBool(self.readonly) # validate type DoxBool
4432 value = find_attr_value_('bound', node)
4433 if value is not None and 'bound' not in already_processed:
4434 already_processed.add('bound')
4435 self.bound = value
4436 self.validate_DoxBoolvalidate_DoxBool(self.bound) # validate type DoxBool
4437 value = find_attr_value_('removable', node)
4438 if value is not None and 'removable' not in already_processed:
4439 already_processed.add('removable')
4440 self.removable = value
4441 self.validate_DoxBoolvalidate_DoxBool(self.removable) # validate type DoxBool
4442 value = find_attr_value_('constrained', node)
4443 if value is not None and 'constrained' not in already_processed:
4444 already_processed.add('constrained')
4445 self.constrained = value
4446 self.validate_DoxBoolvalidate_DoxBool(self.constrained) # validate type DoxBool
4447 value = find_attr_value_('transient', node)
4448 if value is not None and 'transient' not in already_processed:
4449 already_processed.add('transient')
4450 self.transient = value
4451 self.validate_DoxBoolvalidate_DoxBool(self.transient) # validate type DoxBool
4452 value = find_attr_value_('maybevoid', node)
4453 if value is not None and 'maybevoid' not in already_processed:
4454 already_processed.add('maybevoid')
4455 self.maybevoid = value
4456 self.validate_DoxBoolvalidate_DoxBool(self.maybevoid) # validate type DoxBool
4457 value = find_attr_value_('maybedefault', node)
4458 if value is not None and 'maybedefault' not in already_processed:
4459 already_processed.add('maybedefault')
4460 self.maybedefault = value
4461 self.validate_DoxBoolvalidate_DoxBool(self.maybedefault) # validate type DoxBool
4462 value = find_attr_value_('maybeambiguous', node)
4463 if value is not None and 'maybeambiguous' not in already_processed:
4464 already_processed.add('maybeambiguous')
4465 self.maybeambiguous = value
4466 self.validate_DoxBoolvalidate_DoxBool(self.maybeambiguous) # validate type DoxBool
4467 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4468 if nodeName_ == 'templateparamlist':
4469 obj_ = templateparamlistType.factory(parent_object_=self)
4470 obj_.build(child_, gds_collector_=gds_collector_)
4471 self.templateparamlist = obj_
4472 obj_.original_tagname_ = 'templateparamlist'
4473 elif nodeName_ == 'type':
4474 obj_ = linkedTextType.factory(parent_object_=self)
4475 obj_.build(child_, gds_collector_=gds_collector_)
4476 self.type_ = obj_
4477 obj_.original_tagname_ = 'type'
4478 elif nodeName_ == 'definition':
4479 value_ = child_.text
4480 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'definition')
4481 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'definition')
4482 self.definition = value_
4483 self.definition_nsprefix_ = child_.prefix
4484 elif nodeName_ == 'argsstring':
4485 value_ = child_.text
4486 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'argsstring')
4487 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'argsstring')
4488 self.argsstring = value_
4489 self.argsstring_nsprefix_ = child_.prefix
4490 elif nodeName_ == 'name':
4491 value_ = child_.text
4492 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'name')
4493 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'name')
4494 self.name = value_
4495 self.name_nsprefix_ = child_.prefix
4496 elif nodeName_ == 'qualifiedname':
4497 value_ = child_.text
4498 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'qualifiedname')
4499 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'qualifiedname')
4500 self.qualifiedname = value_
4501 self.qualifiedname_nsprefix_ = child_.prefix
4502 elif nodeName_ == 'read':
4503 value_ = child_.text
4504 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'read')
4505 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'read')
4506 self.read = value_
4507 self.read_nsprefix_ = child_.prefix
4508 elif nodeName_ == 'write':
4509 value_ = child_.text
4510 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'write')
4511 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'write')
4512 self.write = value_
4513 self.write_nsprefix_ = child_.prefix
4514 elif nodeName_ == 'bitfield':
4515 value_ = child_.text
4516 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'bitfield')
4517 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'bitfield')
4518 self.bitfield = value_
4519 self.bitfield_nsprefix_ = child_.prefix
4520 elif nodeName_ == 'reimplements':
4521 obj_ = reimplementType.factory(parent_object_=self)
4522 obj_.build(child_, gds_collector_=gds_collector_)
4523 self.reimplements.append(obj_)
4524 obj_.original_tagname_ = 'reimplements'
4525 elif nodeName_ == 'reimplementedby':
4526 obj_ = reimplementType.factory(parent_object_=self)
4527 obj_.build(child_, gds_collector_=gds_collector_)
4528 self.reimplementedby.append(obj_)
4529 obj_.original_tagname_ = 'reimplementedby'
4530 elif nodeName_ == 'param':
4531 obj_ = paramType.factory(parent_object_=self)
4532 obj_.build(child_, gds_collector_=gds_collector_)
4533 self.param.append(obj_)
4534 obj_.original_tagname_ = 'param'
4535 elif nodeName_ == 'enumvalue':
4536 obj_ = enumvalueType.factory(parent_object_=self)
4537 obj_.build(child_, gds_collector_=gds_collector_)
4538 self.enumvalue.append(obj_)
4539 obj_.original_tagname_ = 'enumvalue'
4540 elif nodeName_ == 'requiresclause':
4541 obj_ = linkedTextType.factory(parent_object_=self)
4542 obj_.build(child_, gds_collector_=gds_collector_)
4543 self.requiresclause = obj_
4544 obj_.original_tagname_ = 'requiresclause'
4545 elif nodeName_ == 'initializer':
4546 obj_ = linkedTextType.factory(parent_object_=self)
4547 obj_.build(child_, gds_collector_=gds_collector_)
4548 self.initializer = obj_
4549 obj_.original_tagname_ = 'initializer'
4550 elif nodeName_ == 'exceptions':
4551 obj_ = linkedTextType.factory(parent_object_=self)
4552 obj_.build(child_, gds_collector_=gds_collector_)
4553 self.exceptions = obj_
4554 obj_.original_tagname_ = 'exceptions'
4555 elif nodeName_ == 'briefdescription':
4556 obj_ = descriptionType.factory(parent_object_=self)
4557 obj_.build(child_, gds_collector_=gds_collector_)
4558 self.briefdescription = obj_
4559 obj_.original_tagname_ = 'briefdescription'
4560 elif nodeName_ == 'detaileddescription':
4561 obj_ = descriptionType.factory(parent_object_=self)
4562 obj_.build(child_, gds_collector_=gds_collector_)
4563 self.detaileddescription = obj_
4564 obj_.original_tagname_ = 'detaileddescription'
4565 elif nodeName_ == 'inbodydescription':
4566 obj_ = descriptionType.factory(parent_object_=self)
4567 obj_.build(child_, gds_collector_=gds_collector_)
4568 self.inbodydescription = obj_
4569 obj_.original_tagname_ = 'inbodydescription'
4570 elif nodeName_ == 'location':
4571 obj_ = locationType.factory(parent_object_=self)
4572 obj_.build(child_, gds_collector_=gds_collector_)
4573 self.location = obj_
4574 obj_.original_tagname_ = 'location'
4575 elif nodeName_ == 'references':
4576 obj_ = referenceType.factory(parent_object_=self)
4577 obj_.build(child_, gds_collector_=gds_collector_)
4578 self.references.append(obj_)
4579 obj_.original_tagname_ = 'references'
4580 elif nodeName_ == 'referencedby':
4581 obj_ = referenceType.factory(parent_object_=self)
4582 obj_.build(child_, gds_collector_=gds_collector_)
4583 self.referencedby.append(obj_)
4584 obj_.original_tagname_ = 'referencedby'
4585# end class memberdefType
4586
4587
4589 __hash__ = GeneratedsSuper.__hash__
4590 subclass = None
4591 superclass = None
4592 def __init__(self, gds_collector_=None, **kwargs_):
4593 self.gds_collector_ = gds_collector_
4594 self.gds_elementtree_node_ = None
4595 self.original_tagname_ = None
4596 self.parent_object_ = kwargs_.get('parent_object_')
4597 self.ns_prefix_ = None
4598 def factory(*args_, **kwargs_):
4599 if CurrentSubclassModule_ is not None:
4600 subclass = getSubclassFromModule_(
4601 CurrentSubclassModule_, definition)
4602 if subclass is not None:
4603 return subclass(*args_, **kwargs_)
4604 if definition.subclass:
4605 return definition.subclass(*args_, **kwargs_)
4606 else:
4607 return definition(*args_, **kwargs_)
4608 factory = staticmethod(factory)
4610 return self.ns_prefix_
4611 def set_ns_prefix_(self, ns_prefix):
4612 self.ns_prefix_ = ns_prefix
4613 def hasContent_(self):
4614 if (
4615
4616 ):
4617 return True
4618 else:
4619 return False
4620 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='definition', pretty_print=True):
4621 imported_ns_def_ = GenerateDSNamespaceDefs_.get('definition')
4622 if imported_ns_def_ is not None:
4623 namespacedef_ = imported_ns_def_
4624 if pretty_print:
4625 eol_ = '\n'
4626 else:
4627 eol_ = ''
4628 if self.original_tagname_ is not None and name_ == 'definition':
4629 name_ = self.original_tagname_
4630 if UseCapturedNS_ and self.ns_prefix_:
4631 namespaceprefix_ = self.ns_prefix_ + ':'
4632 showIndent(outfile, level, pretty_print)
4633 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
4634 already_processed = set()
4635 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='definition')
4636 if self.hasContent_hasContent_():
4637 outfile.write('>%s' % (eol_, ))
4638 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='definition', pretty_print=pretty_print)
4639 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
4640 else:
4641 outfile.write('/>%s' % (eol_, ))
4642 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='definition'):
4643 pass
4644 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='definition', fromsubclass_=False, pretty_print=True):
4645 pass
4646 def build(self, node, gds_collector_=None):
4647 self.gds_collector_ = gds_collector_
4648 if SaveElementTreeNode:
4649 self.gds_elementtree_node_ = node
4650 already_processed = set()
4651 self.ns_prefix_ = node.prefix
4652 self.buildAttributes(node, node.attrib, already_processed)
4653 for child in node:
4654 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4655 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4656 return self
4657 def buildAttributes(self, node, attrs, already_processed):
4658 pass
4659 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4660 pass
4661# end class definition
4662
4663
4664class argsstring(GeneratedsSuper):
4665 __hash__ = GeneratedsSuper.__hash__
4666 subclass = None
4667 superclass = None
4668 def __init__(self, gds_collector_=None, **kwargs_):
4669 self.gds_collector_ = gds_collector_
4670 self.gds_elementtree_node_ = None
4671 self.original_tagname_ = None
4672 self.parent_object_ = kwargs_.get('parent_object_')
4673 self.ns_prefix_ = None
4674 def factory(*args_, **kwargs_):
4675 if CurrentSubclassModule_ is not None:
4676 subclass = getSubclassFromModule_(
4677 CurrentSubclassModule_, argsstring)
4678 if subclass is not None:
4679 return subclass(*args_, **kwargs_)
4680 if argsstring.subclass:
4681 return argsstring.subclass(*args_, **kwargs_)
4682 else:
4683 return argsstring(*args_, **kwargs_)
4684 factory = staticmethod(factory)
4686 return self.ns_prefix_
4687 def set_ns_prefix_(self, ns_prefix):
4688 self.ns_prefix_ = ns_prefix
4689 def hasContent_(self):
4690 if (
4691
4692 ):
4693 return True
4694 else:
4695 return False
4696 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='argsstring', pretty_print=True):
4697 imported_ns_def_ = GenerateDSNamespaceDefs_.get('argsstring')
4698 if imported_ns_def_ is not None:
4699 namespacedef_ = imported_ns_def_
4700 if pretty_print:
4701 eol_ = '\n'
4702 else:
4703 eol_ = ''
4704 if self.original_tagname_ is not None and name_ == 'argsstring':
4705 name_ = self.original_tagname_
4706 if UseCapturedNS_ and self.ns_prefix_:
4707 namespaceprefix_ = self.ns_prefix_ + ':'
4708 showIndent(outfile, level, pretty_print)
4709 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
4710 already_processed = set()
4711 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='argsstring')
4712 if self.hasContent_hasContent_():
4713 outfile.write('>%s' % (eol_, ))
4714 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='argsstring', pretty_print=pretty_print)
4715 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
4716 else:
4717 outfile.write('/>%s' % (eol_, ))
4718 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='argsstring'):
4719 pass
4720 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='argsstring', fromsubclass_=False, pretty_print=True):
4721 pass
4722 def build(self, node, gds_collector_=None):
4723 self.gds_collector_ = gds_collector_
4724 if SaveElementTreeNode:
4725 self.gds_elementtree_node_ = node
4726 already_processed = set()
4727 self.ns_prefix_ = node.prefix
4728 self.buildAttributes(node, node.attrib, already_processed)
4729 for child in node:
4730 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4731 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4732 return self
4733 def buildAttributes(self, node, attrs, already_processed):
4734 pass
4735 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4736 pass
4737# end class argsstring
4738
4739
4740class qualifiedname(GeneratedsSuper):
4741 __hash__ = GeneratedsSuper.__hash__
4742 subclass = None
4743 superclass = None
4744 def __init__(self, gds_collector_=None, **kwargs_):
4745 self.gds_collector_ = gds_collector_
4746 self.gds_elementtree_node_ = None
4747 self.original_tagname_ = None
4748 self.parent_object_ = kwargs_.get('parent_object_')
4749 self.ns_prefix_ = None
4750 def factory(*args_, **kwargs_):
4751 if CurrentSubclassModule_ is not None:
4752 subclass = getSubclassFromModule_(
4753 CurrentSubclassModule_, qualifiedname)
4754 if subclass is not None:
4755 return subclass(*args_, **kwargs_)
4756 if qualifiedname.subclass:
4757 return qualifiedname.subclass(*args_, **kwargs_)
4758 else:
4759 return qualifiedname(*args_, **kwargs_)
4760 factory = staticmethod(factory)
4762 return self.ns_prefix_
4763 def set_ns_prefix_(self, ns_prefix):
4764 self.ns_prefix_ = ns_prefix
4765 def hasContent_(self):
4766 if (
4767
4768 ):
4769 return True
4770 else:
4771 return False
4772 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='qualifiedname', pretty_print=True):
4773 imported_ns_def_ = GenerateDSNamespaceDefs_.get('qualifiedname')
4774 if imported_ns_def_ is not None:
4775 namespacedef_ = imported_ns_def_
4776 if pretty_print:
4777 eol_ = '\n'
4778 else:
4779 eol_ = ''
4780 if self.original_tagname_ is not None and name_ == 'qualifiedname':
4781 name_ = self.original_tagname_
4782 if UseCapturedNS_ and self.ns_prefix_:
4783 namespaceprefix_ = self.ns_prefix_ + ':'
4784 showIndent(outfile, level, pretty_print)
4785 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
4786 already_processed = set()
4787 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='qualifiedname')
4788 if self.hasContent_hasContent_():
4789 outfile.write('>%s' % (eol_, ))
4790 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='qualifiedname', pretty_print=pretty_print)
4791 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
4792 else:
4793 outfile.write('/>%s' % (eol_, ))
4794 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='qualifiedname'):
4795 pass
4796 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='qualifiedname', fromsubclass_=False, pretty_print=True):
4797 pass
4798 def build(self, node, gds_collector_=None):
4799 self.gds_collector_ = gds_collector_
4800 if SaveElementTreeNode:
4801 self.gds_elementtree_node_ = node
4802 already_processed = set()
4803 self.ns_prefix_ = node.prefix
4804 self.buildAttributes(node, node.attrib, already_processed)
4805 for child in node:
4806 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4807 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4808 return self
4809 def buildAttributes(self, node, attrs, already_processed):
4810 pass
4811 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4812 pass
4813# end class qualifiedname
4814
4815
4816class read(GeneratedsSuper):
4817 __hash__ = GeneratedsSuper.__hash__
4818 subclass = None
4819 superclass = None
4820 def __init__(self, gds_collector_=None, **kwargs_):
4821 self.gds_collector_ = gds_collector_
4822 self.gds_elementtree_node_ = None
4823 self.original_tagname_ = None
4824 self.parent_object_ = kwargs_.get('parent_object_')
4825 self.ns_prefix_ = None
4826 def factory(*args_, **kwargs_):
4827 if CurrentSubclassModule_ is not None:
4828 subclass = getSubclassFromModule_(
4829 CurrentSubclassModule_, read)
4830 if subclass is not None:
4831 return subclass(*args_, **kwargs_)
4832 if read.subclass:
4833 return read.subclass(*args_, **kwargs_)
4834 else:
4835 return read(*args_, **kwargs_)
4836 factory = staticmethod(factory)
4838 return self.ns_prefix_
4839 def set_ns_prefix_(self, ns_prefix):
4840 self.ns_prefix_ = ns_prefix
4841 def hasContent_(self):
4842 if (
4843
4844 ):
4845 return True
4846 else:
4847 return False
4848 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='read', pretty_print=True):
4849 imported_ns_def_ = GenerateDSNamespaceDefs_.get('read')
4850 if imported_ns_def_ is not None:
4851 namespacedef_ = imported_ns_def_
4852 if pretty_print:
4853 eol_ = '\n'
4854 else:
4855 eol_ = ''
4856 if self.original_tagname_ is not None and name_ == 'read':
4857 name_ = self.original_tagname_
4858 if UseCapturedNS_ and self.ns_prefix_:
4859 namespaceprefix_ = self.ns_prefix_ + ':'
4860 showIndent(outfile, level, pretty_print)
4861 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
4862 already_processed = set()
4863 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='read')
4864 if self.hasContent_hasContent_():
4865 outfile.write('>%s' % (eol_, ))
4866 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='read', pretty_print=pretty_print)
4867 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
4868 else:
4869 outfile.write('/>%s' % (eol_, ))
4870 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='read'):
4871 pass
4872 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='read', fromsubclass_=False, pretty_print=True):
4873 pass
4874 def build(self, node, gds_collector_=None):
4875 self.gds_collector_ = gds_collector_
4876 if SaveElementTreeNode:
4877 self.gds_elementtree_node_ = node
4878 already_processed = set()
4879 self.ns_prefix_ = node.prefix
4880 self.buildAttributes(node, node.attrib, already_processed)
4881 for child in node:
4882 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4883 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4884 return self
4885 def buildAttributes(self, node, attrs, already_processed):
4886 pass
4887 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4888 pass
4889# end class read
4890
4891
4892class write(GeneratedsSuper):
4893 __hash__ = GeneratedsSuper.__hash__
4894 subclass = None
4895 superclass = None
4896 def __init__(self, gds_collector_=None, **kwargs_):
4897 self.gds_collector_ = gds_collector_
4898 self.gds_elementtree_node_ = None
4899 self.original_tagname_ = None
4900 self.parent_object_ = kwargs_.get('parent_object_')
4901 self.ns_prefix_ = None
4902 def factory(*args_, **kwargs_):
4903 if CurrentSubclassModule_ is not None:
4904 subclass = getSubclassFromModule_(
4905 CurrentSubclassModule_, write)
4906 if subclass is not None:
4907 return subclass(*args_, **kwargs_)
4908 if write.subclass:
4909 return write.subclass(*args_, **kwargs_)
4910 else:
4911 return write(*args_, **kwargs_)
4912 factory = staticmethod(factory)
4914 return self.ns_prefix_
4915 def set_ns_prefix_(self, ns_prefix):
4916 self.ns_prefix_ = ns_prefix
4917 def hasContent_(self):
4918 if (
4919
4920 ):
4921 return True
4922 else:
4923 return False
4924 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='write', pretty_print=True):
4925 imported_ns_def_ = GenerateDSNamespaceDefs_.get('write')
4926 if imported_ns_def_ is not None:
4927 namespacedef_ = imported_ns_def_
4928 if pretty_print:
4929 eol_ = '\n'
4930 else:
4931 eol_ = ''
4932 if self.original_tagname_ is not None and name_ == 'write':
4933 name_ = self.original_tagname_
4934 if UseCapturedNS_ and self.ns_prefix_:
4935 namespaceprefix_ = self.ns_prefix_ + ':'
4936 showIndent(outfile, level, pretty_print)
4937 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
4938 already_processed = set()
4939 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='write')
4940 if self.hasContent_hasContent_():
4941 outfile.write('>%s' % (eol_, ))
4942 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='write', pretty_print=pretty_print)
4943 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
4944 else:
4945 outfile.write('/>%s' % (eol_, ))
4946 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='write'):
4947 pass
4948 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='write', fromsubclass_=False, pretty_print=True):
4949 pass
4950 def build(self, node, gds_collector_=None):
4951 self.gds_collector_ = gds_collector_
4952 if SaveElementTreeNode:
4953 self.gds_elementtree_node_ = node
4954 already_processed = set()
4955 self.ns_prefix_ = node.prefix
4956 self.buildAttributes(node, node.attrib, already_processed)
4957 for child in node:
4958 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4959 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4960 return self
4961 def buildAttributes(self, node, attrs, already_processed):
4962 pass
4963 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4964 pass
4965# end class write
4966
4967
4968class bitfield(GeneratedsSuper):
4969 __hash__ = GeneratedsSuper.__hash__
4970 subclass = None
4971 superclass = None
4972 def __init__(self, gds_collector_=None, **kwargs_):
4973 self.gds_collector_ = gds_collector_
4974 self.gds_elementtree_node_ = None
4975 self.original_tagname_ = None
4976 self.parent_object_ = kwargs_.get('parent_object_')
4977 self.ns_prefix_ = None
4978 def factory(*args_, **kwargs_):
4979 if CurrentSubclassModule_ is not None:
4980 subclass = getSubclassFromModule_(
4981 CurrentSubclassModule_, bitfield)
4982 if subclass is not None:
4983 return subclass(*args_, **kwargs_)
4984 if bitfield.subclass:
4985 return bitfield.subclass(*args_, **kwargs_)
4986 else:
4987 return bitfield(*args_, **kwargs_)
4988 factory = staticmethod(factory)
4990 return self.ns_prefix_
4991 def set_ns_prefix_(self, ns_prefix):
4992 self.ns_prefix_ = ns_prefix
4993 def hasContent_(self):
4994 if (
4995
4996 ):
4997 return True
4998 else:
4999 return False
5000 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='bitfield', pretty_print=True):
5001 imported_ns_def_ = GenerateDSNamespaceDefs_.get('bitfield')
5002 if imported_ns_def_ is not None:
5003 namespacedef_ = imported_ns_def_
5004 if pretty_print:
5005 eol_ = '\n'
5006 else:
5007 eol_ = ''
5008 if self.original_tagname_ is not None and name_ == 'bitfield':
5009 name_ = self.original_tagname_
5010 if UseCapturedNS_ and self.ns_prefix_:
5011 namespaceprefix_ = self.ns_prefix_ + ':'
5012 showIndent(outfile, level, pretty_print)
5013 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5014 already_processed = set()
5015 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='bitfield')
5016 if self.hasContent_hasContent_():
5017 outfile.write('>%s' % (eol_, ))
5018 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='bitfield', pretty_print=pretty_print)
5019 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5020 else:
5021 outfile.write('/>%s' % (eol_, ))
5022 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='bitfield'):
5023 pass
5024 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='bitfield', fromsubclass_=False, pretty_print=True):
5025 pass
5026 def build(self, node, gds_collector_=None):
5027 self.gds_collector_ = gds_collector_
5028 if SaveElementTreeNode:
5029 self.gds_elementtree_node_ = node
5030 already_processed = set()
5031 self.ns_prefix_ = node.prefix
5032 self.buildAttributes(node, node.attrib, already_processed)
5033 for child in node:
5034 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5035 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5036 return self
5037 def buildAttributes(self, node, attrs, already_processed):
5038 pass
5039 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5040 pass
5041# end class bitfield
5042
5043
5044class descriptionType(GeneratedsSuper):
5045 __hash__ = GeneratedsSuper.__hash__
5046 subclass = None
5047 superclass = None
5048 def __init__(self, title=None, para=None, internal=None, sect1=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
5049 self.gds_collector_ = gds_collector_
5050 self.gds_elementtree_node_ = None
5051 self.original_tagname_ = None
5052 self.parent_object_ = kwargs_.get('parent_object_')
5053 self.ns_prefix_ = None
5054 self.title = title
5055 self.title_nsprefix_ = None
5056 if para is None:
5057 self.para = []
5058 else:
5059 self.para = para
5060 self.para_nsprefix_ = None
5061 if internal is None:
5062 self.internal = []
5063 else:
5064 self.internal = internal
5065 self.internal_nsprefix_ = None
5066 if sect1 is None:
5067 self.sect1 = []
5068 else:
5069 self.sect1 = sect1
5070 self.sect1_nsprefix_ = None
5071 self.valueOf_ = valueOf_
5072 if mixedclass_ is None:
5073 self.mixedclass_ = MixedContainer
5074 else:
5075 self.mixedclass_ = mixedclass_
5076 if content_ is None:
5077 self.content_ = []
5078 else:
5079 self.content_ = content_
5080 self.valueOf_ = valueOf_
5081 def factory(*args_, **kwargs_):
5082 if CurrentSubclassModule_ is not None:
5083 subclass = getSubclassFromModule_(
5084 CurrentSubclassModule_, descriptionType)
5085 if subclass is not None:
5086 return subclass(*args_, **kwargs_)
5087 if descriptionType.subclass:
5088 return descriptionType.subclass(*args_, **kwargs_)
5089 else:
5090 return descriptionType(*args_, **kwargs_)
5091 factory = staticmethod(factory)
5093 return self.ns_prefix_
5094 def set_ns_prefix_(self, ns_prefix):
5095 self.ns_prefix_ = ns_prefix
5096 def get_title(self):
5097 return self.title
5098 def set_title(self, title):
5099 self.title = title
5100 def get_para(self):
5101 return self.para
5102 def set_para(self, para):
5103 self.para = para
5104 def add_para(self, value):
5105 self.para.append(value)
5106 def insert_para_at(self, index, value):
5107 self.para.insert(index, value)
5108 def replace_para_at(self, index, value):
5109 self.para[index] = value
5110 def get_internal(self):
5111 return self.internal
5112 def set_internal(self, internal):
5113 self.internal = internal
5114 def add_internal(self, value):
5115 self.internal.append(value)
5116 def insert_internal_at(self, index, value):
5117 self.internal.insert(index, value)
5118 def replace_internal_at(self, index, value):
5119 self.internal[index] = value
5120 def get_sect1(self):
5121 return self.sect1
5122 def set_sect1(self, sect1):
5123 self.sect1 = sect1
5124 def add_sect1(self, value):
5125 self.sect1.append(value)
5126 def insert_sect1_at(self, index, value):
5127 self.sect1.insert(index, value)
5128 def replace_sect1_at(self, index, value):
5129 self.sect1[index] = value
5130 def get_valueOf_(self): return self.valueOf_
5131 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
5132 def hasContent_(self):
5133 if (
5134 self.title is not None or
5135 self.para or
5136 self.internal or
5137 self.sect1 or
5138 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
5139 self.content_
5140 ):
5141 return True
5142 else:
5143 return False
5144 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='descriptionType', pretty_print=True):
5145 imported_ns_def_ = GenerateDSNamespaceDefs_.get('descriptionType')
5146 if imported_ns_def_ is not None:
5147 namespacedef_ = imported_ns_def_
5148 if pretty_print:
5149 eol_ = '\n'
5150 else:
5151 eol_ = ''
5152 if self.original_tagname_ is not None and name_ == 'descriptionType':
5153 name_ = self.original_tagname_
5154 if UseCapturedNS_ and self.ns_prefix_:
5155 namespaceprefix_ = self.ns_prefix_ + ':'
5156 showIndent(outfile, level, pretty_print)
5157 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5158 already_processed = set()
5159 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='descriptionType')
5160 if self.hasContent_hasContent_():
5161 outfile.write('>%s' % (eol_, ))
5162 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='descriptionType', pretty_print=pretty_print)
5163 showIndent(outfile, level, pretty_print)
5164 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5165 else:
5166 outfile.write('/>%s' % (eol_, ))
5167 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='descriptionType'):
5168 pass
5169 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='descriptionType', fromsubclass_=False, pretty_print=True):
5170 if not fromsubclass_:
5171 for item_ in self.content_:
5172 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
5173 if pretty_print:
5174 eol_ = '\n'
5175 else:
5176 eol_ = ''
5177 if self.title is not None:
5178 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
5179 showIndent(outfile, level, pretty_print)
5180 outfile.write('<%stitle>%s</%stitle>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.title), input_name='title')), namespaceprefix_ , eol_))
5181 for para_ in self.para:
5182 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
5183 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
5184 for internal_ in self.internal:
5185 namespaceprefix_ = self.internal_nsprefix_ + ':' if (UseCapturedNS_ and self.internal_nsprefix_) else ''
5186 internal_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='internal', pretty_print=pretty_print)
5187 for sect1_ in self.sect1:
5188 namespaceprefix_ = self.sect1_nsprefix_ + ':' if (UseCapturedNS_ and self.sect1_nsprefix_) else ''
5189 sect1_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect1', pretty_print=pretty_print)
5190 def build(self, node, gds_collector_=None):
5191 self.gds_collector_ = gds_collector_
5192 if SaveElementTreeNode:
5193 self.gds_elementtree_node_ = node
5194 already_processed = set()
5195 self.ns_prefix_ = node.prefix
5196 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
5197 self.valueOf_ = get_all_text_(node)
5198 if node.text is not None:
5199 obj_ = self.mixedclass_(MixedContainer.CategoryText,
5200 MixedContainer.TypeNone, '', node.text)
5201 self.content_.append(obj_)
5202 for child in node:
5203 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5204 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5205 return self
5206 def buildAttributes(self, node, attrs, already_processed):
5207 pass
5208 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5209 if nodeName_ == 'title' and child_.text is not None:
5210 valuestr_ = child_.text
5211 valuestr_ = self.gds_parse_string(valuestr_, node, 'title')
5212 valuestr_ = self.gds_validate_string(valuestr_, node, 'title')
5213 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
5214 MixedContainer.TypeString, 'title', valuestr_)
5215 self.content_.append(obj_)
5216 self.title_nsprefix_ = child_.prefix
5217 elif nodeName_ == 'para':
5218 obj_ = docParaType.factory(parent_object_=self)
5219 obj_.build(child_, gds_collector_=gds_collector_)
5220 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
5221 MixedContainer.TypeNone, 'para', obj_)
5222 self.content_.append(obj_)
5223 if hasattr(self, 'add_para'):
5224 self.add_para(obj_.value)
5225 elif hasattr(self, 'set_para'):
5226 self.set_para(obj_.value)
5227 elif nodeName_ == 'internal':
5228 obj_ = docInternalType.factory(parent_object_=self)
5229 obj_.build(child_, gds_collector_=gds_collector_)
5230 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
5231 MixedContainer.TypeNone, 'internal', obj_)
5232 self.content_.append(obj_)
5233 if hasattr(self, 'add_internal'):
5234 self.add_internal(obj_.value)
5235 elif hasattr(self, 'set_internal'):
5236 self.set_internal(obj_.value)
5237 elif nodeName_ == 'sect1':
5238 obj_ = docSect1Type.factory(parent_object_=self)
5239 obj_.build(child_, gds_collector_=gds_collector_)
5240 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
5241 MixedContainer.TypeNone, 'sect1', obj_)
5242 self.content_.append(obj_)
5243 if hasattr(self, 'add_sect1'):
5244 self.add_sect1(obj_.value)
5245 elif hasattr(self, 'set_sect1'):
5246 self.set_sect1(obj_.value)
5247 if not fromsubclass_ and child_.tail is not None:
5248 obj_ = self.mixedclass_(MixedContainer.CategoryText,
5249 MixedContainer.TypeNone, '', child_.tail)
5250 self.content_.append(obj_)
5251# end class descriptionType
5252
5253
5254class enumvalueType(GeneratedsSuper):
5255 __hash__ = GeneratedsSuper.__hash__
5256 subclass = None
5257 superclass = None
5258 def __init__(self, id=None, prot=None, name=None, initializer=None, briefdescription=None, detaileddescription=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
5259 self.gds_collector_ = gds_collector_
5260 self.gds_elementtree_node_ = None
5261 self.original_tagname_ = None
5262 self.parent_object_ = kwargs_.get('parent_object_')
5263 self.ns_prefix_ = None
5264 self.id = _cast(None, id)
5265 self.id_nsprefix_ = None
5266 self.prot = _cast(None, prot)
5267 self.prot_nsprefix_ = None
5268 self.name = name
5269 self.name_nsprefix_ = None
5270 self.initializer = initializer
5271 self.initializer_nsprefix_ = None
5272 self.briefdescription = briefdescription
5273 self.briefdescription_nsprefix_ = None
5274 self.detaileddescription = detaileddescription
5276 self.valueOf_ = valueOf_
5277 if mixedclass_ is None:
5278 self.mixedclass_ = MixedContainer
5279 else:
5280 self.mixedclass_ = mixedclass_
5281 if content_ is None:
5282 self.content_ = []
5283 else:
5284 self.content_ = content_
5285 self.valueOf_ = valueOf_
5286 def factory(*args_, **kwargs_):
5287 if CurrentSubclassModule_ is not None:
5288 subclass = getSubclassFromModule_(
5289 CurrentSubclassModule_, enumvalueType)
5290 if subclass is not None:
5291 return subclass(*args_, **kwargs_)
5292 if enumvalueType.subclass:
5293 return enumvalueType.subclass(*args_, **kwargs_)
5294 else:
5295 return enumvalueType(*args_, **kwargs_)
5296 factory = staticmethod(factory)
5298 return self.ns_prefix_
5299 def set_ns_prefix_(self, ns_prefix):
5300 self.ns_prefix_ = ns_prefix
5301 def get_name(self):
5302 return self.name
5303 def set_name(self, name):
5304 self.name = name
5306 return self.initializer
5307 def set_initializer(self, initializer):
5308 self.initializer = initializer
5310 return self.briefdescription
5311 def set_briefdescription(self, briefdescription):
5312 self.briefdescription = briefdescription
5314 return self.detaileddescription
5315 def set_detaileddescription(self, detaileddescription):
5316 self.detaileddescription = detaileddescription
5317 def get_id(self):
5318 return self.id
5319 def set_id(self, id):
5320 self.id = id
5321 def get_prot(self):
5322 return self.prot
5323 def set_prot(self, prot):
5324 self.prot = prot
5325 def get_valueOf_(self): return self.valueOf_
5326 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
5328 # Validate type DoxProtectionKind, a restriction on xsd:string.
5329 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
5330 if not isinstance(value, str):
5332 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
5333 return False
5334 value = value
5335 enumerations = ['public', 'protected', 'private', 'package']
5336 if value not in enumerations:
5338 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxProtectionKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
5339 result = False
5340 def hasContent_(self):
5341 if (
5342 self.name is not None or
5343 self.initializer is not None or
5344 self.briefdescription is not None or
5345 self.detaileddescription is not None or
5346 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
5347 self.content_
5348 ):
5349 return True
5350 else:
5351 return False
5352 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='enumvalueType', pretty_print=True):
5353 imported_ns_def_ = GenerateDSNamespaceDefs_.get('enumvalueType')
5354 if imported_ns_def_ is not None:
5355 namespacedef_ = imported_ns_def_
5356 if pretty_print:
5357 eol_ = '\n'
5358 else:
5359 eol_ = ''
5360 if self.original_tagname_ is not None and name_ == 'enumvalueType':
5361 name_ = self.original_tagname_
5362 if UseCapturedNS_ and self.ns_prefix_:
5363 namespaceprefix_ = self.ns_prefix_ + ':'
5364 showIndent(outfile, level, pretty_print)
5365 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5366 already_processed = set()
5367 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='enumvalueType')
5368 if self.hasContent_hasContent_():
5369 outfile.write('>%s' % (eol_, ))
5370 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='enumvalueType', pretty_print=pretty_print)
5371 showIndent(outfile, level, pretty_print)
5372 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5373 else:
5374 outfile.write('/>%s' % (eol_, ))
5375 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='enumvalueType'):
5376 if self.id is not None and 'id' not in already_processed:
5377 already_processed.add('id')
5378 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
5379 if self.prot is not None and 'prot' not in already_processed:
5380 already_processed.add('prot')
5381 outfile.write(' prot=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.prot), input_name='prot')), ))
5382 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='enumvalueType', fromsubclass_=False, pretty_print=True):
5383 if not fromsubclass_:
5384 for item_ in self.content_:
5385 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
5386 if pretty_print:
5387 eol_ = '\n'
5388 else:
5389 eol_ = ''
5390 if self.name is not None:
5391 namespaceprefix_ = self.name_nsprefix_ + ':' if (UseCapturedNS_ and self.name_nsprefix_) else ''
5392 showIndent(outfile, level, pretty_print)
5393 outfile.write('<%sname>%s</%sname>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.name), input_name='name')), namespaceprefix_ , eol_))
5394 if self.initializer is not None:
5395 namespaceprefix_ = self.initializer_nsprefix_ + ':' if (UseCapturedNS_ and self.initializer_nsprefix_) else ''
5396 self.initializer.export(outfile, level, namespaceprefix_, namespacedef_='', name_='initializer', pretty_print=pretty_print)
5397 if self.briefdescription is not None:
5398 namespaceprefix_ = self.briefdescription_nsprefix_ + ':' if (UseCapturedNS_ and self.briefdescription_nsprefix_) else ''
5399 self.briefdescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='briefdescription', pretty_print=pretty_print)
5400 if self.detaileddescription is not None:
5401 namespaceprefix_ = self.detaileddescription_nsprefix_ + ':' if (UseCapturedNS_ and self.detaileddescription_nsprefix_) else ''
5402 self.detaileddescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='detaileddescription', pretty_print=pretty_print)
5403 def build(self, node, gds_collector_=None):
5404 self.gds_collector_ = gds_collector_
5405 if SaveElementTreeNode:
5406 self.gds_elementtree_node_ = node
5407 already_processed = set()
5408 self.ns_prefix_ = node.prefix
5409 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
5410 self.valueOf_ = get_all_text_(node)
5411 if node.text is not None:
5412 obj_ = self.mixedclass_(MixedContainer.CategoryText,
5413 MixedContainer.TypeNone, '', node.text)
5414 self.content_.append(obj_)
5415 for child in node:
5416 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5417 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5418 return self
5419 def buildAttributes(self, node, attrs, already_processed):
5420 value = find_attr_value_('id', node)
5421 if value is not None and 'id' not in already_processed:
5422 already_processed.add('id')
5423 self.id = value
5424 value = find_attr_value_('prot', node)
5425 if value is not None and 'prot' not in already_processed:
5426 already_processed.add('prot')
5427 self.prot = value
5428 self.validate_DoxProtectionKindvalidate_DoxProtectionKind(self.prot) # validate type DoxProtectionKind
5429 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5430 if nodeName_ == 'name' and child_.text is not None:
5431 valuestr_ = child_.text
5432 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'name')
5433 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'name')
5434 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
5435 MixedContainer.TypeString, 'name', valuestr_)
5436 self.content_.append(obj_)
5437 self.name_nsprefix_ = child_.prefix
5438 elif nodeName_ == 'initializer':
5439 obj_ = linkedTextType.factory(parent_object_=self)
5440 obj_.build(child_, gds_collector_=gds_collector_)
5441 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
5442 MixedContainer.TypeNone, 'initializer', obj_)
5443 self.content_.append(obj_)
5444 if hasattr(self, 'add_initializer'):
5445 self.add_initializer(obj_.value)
5446 elif hasattr(self, 'set_initializer'):
5447 self.set_initializerset_initializer(obj_.value)
5448 elif nodeName_ == 'briefdescription':
5449 obj_ = descriptionType.factory(parent_object_=self)
5450 obj_.build(child_, gds_collector_=gds_collector_)
5451 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
5452 MixedContainer.TypeNone, 'briefdescription', obj_)
5453 self.content_.append(obj_)
5454 if hasattr(self, 'add_briefdescription'):
5455 self.add_briefdescription(obj_.value)
5456 elif hasattr(self, 'set_briefdescription'):
5458 elif nodeName_ == 'detaileddescription':
5459 obj_ = descriptionType.factory(parent_object_=self)
5460 obj_.build(child_, gds_collector_=gds_collector_)
5461 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
5462 MixedContainer.TypeNone, 'detaileddescription', obj_)
5463 self.content_.append(obj_)
5464 if hasattr(self, 'add_detaileddescription'):
5465 self.add_detaileddescription(obj_.value)
5466 elif hasattr(self, 'set_detaileddescription'):
5468 if not fromsubclass_ and child_.tail is not None:
5469 obj_ = self.mixedclass_(MixedContainer.CategoryText,
5470 MixedContainer.TypeNone, '', child_.tail)
5471 self.content_.append(obj_)
5472# end class enumvalueType
5473
5474
5476 __hash__ = GeneratedsSuper.__hash__
5477 subclass = None
5478 superclass = None
5479 def __init__(self, param=None, gds_collector_=None, **kwargs_):
5480 self.gds_collector_ = gds_collector_
5481 self.gds_elementtree_node_ = None
5482 self.original_tagname_ = None
5483 self.parent_object_ = kwargs_.get('parent_object_')
5484 self.ns_prefix_ = None
5485 if param is None:
5486 self.param = []
5487 else:
5488 self.param = param
5489 self.param_nsprefix_ = None
5490 def factory(*args_, **kwargs_):
5491 if CurrentSubclassModule_ is not None:
5492 subclass = getSubclassFromModule_(
5493 CurrentSubclassModule_, templateparamlistType)
5494 if subclass is not None:
5495 return subclass(*args_, **kwargs_)
5496 if templateparamlistType.subclass:
5497 return templateparamlistType.subclass(*args_, **kwargs_)
5498 else:
5499 return templateparamlistType(*args_, **kwargs_)
5500 factory = staticmethod(factory)
5502 return self.ns_prefix_
5503 def set_ns_prefix_(self, ns_prefix):
5504 self.ns_prefix_ = ns_prefix
5505 def get_param(self):
5506 return self.param
5507 def set_param(self, param):
5508 self.param = param
5509 def add_param(self, value):
5510 self.param.append(value)
5511 def insert_param_at(self, index, value):
5512 self.param.insert(index, value)
5513 def replace_param_at(self, index, value):
5514 self.param[index] = value
5515 def hasContent_(self):
5516 if (
5517 self.param
5518 ):
5519 return True
5520 else:
5521 return False
5522 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='templateparamlistType', pretty_print=True):
5523 imported_ns_def_ = GenerateDSNamespaceDefs_.get('templateparamlistType')
5524 if imported_ns_def_ is not None:
5525 namespacedef_ = imported_ns_def_
5526 if pretty_print:
5527 eol_ = '\n'
5528 else:
5529 eol_ = ''
5530 if self.original_tagname_ is not None and name_ == 'templateparamlistType':
5531 name_ = self.original_tagname_
5532 if UseCapturedNS_ and self.ns_prefix_:
5533 namespaceprefix_ = self.ns_prefix_ + ':'
5534 showIndent(outfile, level, pretty_print)
5535 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5536 already_processed = set()
5537 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='templateparamlistType')
5538 if self.hasContent_hasContent_():
5539 outfile.write('>%s' % (eol_, ))
5540 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='templateparamlistType', pretty_print=pretty_print)
5541 showIndent(outfile, level, pretty_print)
5542 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5543 else:
5544 outfile.write('/>%s' % (eol_, ))
5545 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='templateparamlistType'):
5546 pass
5547 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='templateparamlistType', fromsubclass_=False, pretty_print=True):
5548 if pretty_print:
5549 eol_ = '\n'
5550 else:
5551 eol_ = ''
5552 for param_ in self.param:
5553 namespaceprefix_ = self.param_nsprefix_ + ':' if (UseCapturedNS_ and self.param_nsprefix_) else ''
5554 param_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='param', pretty_print=pretty_print)
5555 def build(self, node, gds_collector_=None):
5556 self.gds_collector_ = gds_collector_
5557 if SaveElementTreeNode:
5558 self.gds_elementtree_node_ = node
5559 already_processed = set()
5560 self.ns_prefix_ = node.prefix
5561 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
5562 for child in node:
5563 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5564 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5565 return self
5566 def buildAttributes(self, node, attrs, already_processed):
5567 pass
5568 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5569 if nodeName_ == 'param':
5570 obj_ = paramType.factory(parent_object_=self)
5571 obj_.build(child_, gds_collector_=gds_collector_)
5572 self.param.append(obj_)
5573 obj_.original_tagname_ = 'param'
5574# end class templateparamlistType
5575
5576
5577class paramType(GeneratedsSuper):
5578 __hash__ = GeneratedsSuper.__hash__
5579 subclass = None
5580 superclass = None
5581 def __init__(self, attributes=None, type_=None, declname=None, defname=None, array=None, defval=None, typeconstraint=None, briefdescription=None, gds_collector_=None, **kwargs_):
5582 self.gds_collector_ = gds_collector_
5583 self.gds_elementtree_node_ = None
5584 self.original_tagname_ = None
5585 self.parent_object_ = kwargs_.get('parent_object_')
5586 self.ns_prefix_ = None
5587 self.attributes = attributes
5588 self.attributes_nsprefix_ = None
5589 self.type_ = type_
5590 self.type__nsprefix_ = None
5591 self.declname = declname
5592 self.declname_nsprefix_ = None
5593 self.defname = defname
5594 self.defname_nsprefix_ = None
5595 self.array = array
5596 self.array_nsprefix_ = None
5597 self.defval = defval
5598 self.defval_nsprefix_ = None
5599 self.typeconstraint = typeconstraint
5600 self.typeconstraint_nsprefix_ = None
5601 self.briefdescription = briefdescription
5602 self.briefdescription_nsprefix_ = None
5603 def factory(*args_, **kwargs_):
5604 if CurrentSubclassModule_ is not None:
5605 subclass = getSubclassFromModule_(
5606 CurrentSubclassModule_, paramType)
5607 if subclass is not None:
5608 return subclass(*args_, **kwargs_)
5609 if paramType.subclass:
5610 return paramType.subclass(*args_, **kwargs_)
5611 else:
5612 return paramType(*args_, **kwargs_)
5613 factory = staticmethod(factory)
5615 return self.ns_prefix_
5616 def set_ns_prefix_(self, ns_prefix):
5617 self.ns_prefix_ = ns_prefix
5619 return self.attributes
5620 def set_attributes(self, attributes):
5621 self.attributes = attributes
5622 def get_type(self):
5623 return self.type_
5624 def set_type(self, type_):
5625 self.type_ = type_
5626 def get_declname(self):
5627 return self.declname
5628 def set_declname(self, declname):
5629 self.declname = declname
5630 def get_defname(self):
5631 return self.defname
5632 def set_defname(self, defname):
5633 self.defname = defname
5634 def get_array(self):
5635 return self.array
5636 def set_array(self, array):
5637 self.array = array
5638 def get_defval(self):
5639 return self.defval
5640 def set_defval(self, defval):
5641 self.defval = defval
5643 return self.typeconstraint
5644 def set_typeconstraint(self, typeconstraint):
5645 self.typeconstraint = typeconstraint
5647 return self.briefdescription
5648 def set_briefdescription(self, briefdescription):
5649 self.briefdescription = briefdescription
5650 def hasContent_(self):
5651 if (
5652 self.attributes is not None or
5653 self.type_ is not None or
5654 self.declname is not None or
5655 self.defname is not None or
5656 self.array is not None or
5657 self.defval is not None or
5658 self.typeconstraint is not None or
5659 self.briefdescription is not None
5660 ):
5661 return True
5662 else:
5663 return False
5664 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='paramType', pretty_print=True):
5665 imported_ns_def_ = GenerateDSNamespaceDefs_.get('paramType')
5666 if imported_ns_def_ is not None:
5667 namespacedef_ = imported_ns_def_
5668 if pretty_print:
5669 eol_ = '\n'
5670 else:
5671 eol_ = ''
5672 if self.original_tagname_ is not None and name_ == 'paramType':
5673 name_ = self.original_tagname_
5674 if UseCapturedNS_ and self.ns_prefix_:
5675 namespaceprefix_ = self.ns_prefix_ + ':'
5676 showIndent(outfile, level, pretty_print)
5677 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5678 already_processed = set()
5679 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='paramType')
5680 if self.hasContent_hasContent_():
5681 outfile.write('>%s' % (eol_, ))
5682 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='paramType', pretty_print=pretty_print)
5683 showIndent(outfile, level, pretty_print)
5684 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5685 else:
5686 outfile.write('/>%s' % (eol_, ))
5687 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='paramType'):
5688 pass
5689 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='paramType', fromsubclass_=False, pretty_print=True):
5690 if pretty_print:
5691 eol_ = '\n'
5692 else:
5693 eol_ = ''
5694 if self.attributes is not None:
5695 namespaceprefix_ = self.attributes_nsprefix_ + ':' if (UseCapturedNS_ and self.attributes_nsprefix_) else ''
5696 showIndent(outfile, level, pretty_print)
5697 outfile.write('<%sattributes>%s</%sattributes>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.attributes), input_name='attributes')), namespaceprefix_ , eol_))
5698 if self.type_ is not None:
5699 namespaceprefix_ = self.type__nsprefix_ + ':' if (UseCapturedNS_ and self.type__nsprefix_) else ''
5700 self.type_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='type', pretty_print=pretty_print)
5701 if self.declname is not None:
5702 namespaceprefix_ = self.declname_nsprefix_ + ':' if (UseCapturedNS_ and self.declname_nsprefix_) else ''
5703 showIndent(outfile, level, pretty_print)
5704 outfile.write('<%sdeclname>%s</%sdeclname>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.declname), input_name='declname')), namespaceprefix_ , eol_))
5705 if self.defname is not None:
5706 namespaceprefix_ = self.defname_nsprefix_ + ':' if (UseCapturedNS_ and self.defname_nsprefix_) else ''
5707 showIndent(outfile, level, pretty_print)
5708 outfile.write('<%sdefname>%s</%sdefname>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.defname), input_name='defname')), namespaceprefix_ , eol_))
5709 if self.array is not None:
5710 namespaceprefix_ = self.array_nsprefix_ + ':' if (UseCapturedNS_ and self.array_nsprefix_) else ''
5711 showIndent(outfile, level, pretty_print)
5712 outfile.write('<%sarray>%s</%sarray>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.array), input_name='array')), namespaceprefix_ , eol_))
5713 if self.defval is not None:
5714 namespaceprefix_ = self.defval_nsprefix_ + ':' if (UseCapturedNS_ and self.defval_nsprefix_) else ''
5715 self.defval.export(outfile, level, namespaceprefix_, namespacedef_='', name_='defval', pretty_print=pretty_print)
5716 if self.typeconstraint is not None:
5717 namespaceprefix_ = self.typeconstraint_nsprefix_ + ':' if (UseCapturedNS_ and self.typeconstraint_nsprefix_) else ''
5718 self.typeconstraint.export(outfile, level, namespaceprefix_, namespacedef_='', name_='typeconstraint', pretty_print=pretty_print)
5719 if self.briefdescription is not None:
5720 namespaceprefix_ = self.briefdescription_nsprefix_ + ':' if (UseCapturedNS_ and self.briefdescription_nsprefix_) else ''
5721 self.briefdescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='briefdescription', pretty_print=pretty_print)
5722 def build(self, node, gds_collector_=None):
5723 self.gds_collector_ = gds_collector_
5724 if SaveElementTreeNode:
5725 self.gds_elementtree_node_ = node
5726 already_processed = set()
5727 self.ns_prefix_ = node.prefix
5728 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
5729 for child in node:
5730 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5731 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5732 return self
5733 def buildAttributes(self, node, attrs, already_processed):
5734 pass
5735 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5736 if nodeName_ == 'attributes':
5737 value_ = child_.text
5738 value_ = self.gds_parse_string(value_, node, 'attributes')
5739 value_ = self.gds_validate_string(value_, node, 'attributes')
5740 self.attributes = value_
5741 self.attributes_nsprefix_ = child_.prefix
5742 elif nodeName_ == 'type':
5743 obj_ = linkedTextType.factory(parent_object_=self)
5744 obj_.build(child_, gds_collector_=gds_collector_)
5745 self.type_ = obj_
5746 obj_.original_tagname_ = 'type'
5747 elif nodeName_ == 'declname':
5748 value_ = child_.text
5749 value_ = self.gds_parse_string(value_, node, 'declname')
5750 value_ = self.gds_validate_string(value_, node, 'declname')
5751 self.declname = value_
5752 self.declname_nsprefix_ = child_.prefix
5753 elif nodeName_ == 'defname':
5754 value_ = child_.text
5755 value_ = self.gds_parse_string(value_, node, 'defname')
5756 value_ = self.gds_validate_string(value_, node, 'defname')
5757 self.defname = value_
5758 self.defname_nsprefix_ = child_.prefix
5759 elif nodeName_ == 'array':
5760 value_ = child_.text
5761 value_ = self.gds_parse_string(value_, node, 'array')
5762 value_ = self.gds_validate_string(value_, node, 'array')
5763 self.array = value_
5764 self.array_nsprefix_ = child_.prefix
5765 elif nodeName_ == 'defval':
5766 obj_ = linkedTextType.factory(parent_object_=self)
5767 obj_.build(child_, gds_collector_=gds_collector_)
5768 self.defval = obj_
5769 obj_.original_tagname_ = 'defval'
5770 elif nodeName_ == 'typeconstraint':
5771 obj_ = linkedTextType.factory(parent_object_=self)
5772 obj_.build(child_, gds_collector_=gds_collector_)
5773 self.typeconstraint = obj_
5774 obj_.original_tagname_ = 'typeconstraint'
5775 elif nodeName_ == 'briefdescription':
5776 obj_ = descriptionType.factory(parent_object_=self)
5777 obj_.build(child_, gds_collector_=gds_collector_)
5778 self.briefdescription = obj_
5779 obj_.original_tagname_ = 'briefdescription'
5780# end class paramType
5781
5782
5783class attributes(GeneratedsSuper):
5784 __hash__ = GeneratedsSuper.__hash__
5785 subclass = None
5786 superclass = None
5787 def __init__(self, gds_collector_=None, **kwargs_):
5788 self.gds_collector_ = gds_collector_
5789 self.gds_elementtree_node_ = None
5790 self.original_tagname_ = None
5791 self.parent_object_ = kwargs_.get('parent_object_')
5792 self.ns_prefix_ = None
5793 def factory(*args_, **kwargs_):
5794 if CurrentSubclassModule_ is not None:
5795 subclass = getSubclassFromModule_(
5796 CurrentSubclassModule_, attributes)
5797 if subclass is not None:
5798 return subclass(*args_, **kwargs_)
5799 if attributes.subclass:
5800 return attributes.subclass(*args_, **kwargs_)
5801 else:
5802 return attributes(*args_, **kwargs_)
5803 factory = staticmethod(factory)
5805 return self.ns_prefix_
5806 def set_ns_prefix_(self, ns_prefix):
5807 self.ns_prefix_ = ns_prefix
5808 def hasContent_(self):
5809 if (
5810
5811 ):
5812 return True
5813 else:
5814 return False
5815 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='attributes', pretty_print=True):
5816 imported_ns_def_ = GenerateDSNamespaceDefs_.get('attributes')
5817 if imported_ns_def_ is not None:
5818 namespacedef_ = imported_ns_def_
5819 if pretty_print:
5820 eol_ = '\n'
5821 else:
5822 eol_ = ''
5823 if self.original_tagname_ is not None and name_ == 'attributes':
5824 name_ = self.original_tagname_
5825 if UseCapturedNS_ and self.ns_prefix_:
5826 namespaceprefix_ = self.ns_prefix_ + ':'
5827 showIndent(outfile, level, pretty_print)
5828 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5829 already_processed = set()
5830 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='attributes')
5831 if self.hasContent_hasContent_():
5832 outfile.write('>%s' % (eol_, ))
5833 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='attributes', pretty_print=pretty_print)
5834 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5835 else:
5836 outfile.write('/>%s' % (eol_, ))
5837 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='attributes'):
5838 pass
5839 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='attributes', fromsubclass_=False, pretty_print=True):
5840 pass
5841 def build(self, node, gds_collector_=None):
5842 self.gds_collector_ = gds_collector_
5843 if SaveElementTreeNode:
5844 self.gds_elementtree_node_ = node
5845 already_processed = set()
5846 self.ns_prefix_ = node.prefix
5847 self.buildAttributes(node, node.attrib, already_processed)
5848 for child in node:
5849 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5850 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5851 return self
5852 def buildAttributes(self, node, attrs, already_processed):
5853 pass
5854 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5855 pass
5856# end class attributes
5857
5858
5859class declname(GeneratedsSuper):
5860 __hash__ = GeneratedsSuper.__hash__
5861 subclass = None
5862 superclass = None
5863 def __init__(self, gds_collector_=None, **kwargs_):
5864 self.gds_collector_ = gds_collector_
5865 self.gds_elementtree_node_ = None
5866 self.original_tagname_ = None
5867 self.parent_object_ = kwargs_.get('parent_object_')
5868 self.ns_prefix_ = None
5869 def factory(*args_, **kwargs_):
5870 if CurrentSubclassModule_ is not None:
5871 subclass = getSubclassFromModule_(
5872 CurrentSubclassModule_, declname)
5873 if subclass is not None:
5874 return subclass(*args_, **kwargs_)
5875 if declname.subclass:
5876 return declname.subclass(*args_, **kwargs_)
5877 else:
5878 return declname(*args_, **kwargs_)
5879 factory = staticmethod(factory)
5881 return self.ns_prefix_
5882 def set_ns_prefix_(self, ns_prefix):
5883 self.ns_prefix_ = ns_prefix
5884 def hasContent_(self):
5885 if (
5886
5887 ):
5888 return True
5889 else:
5890 return False
5891 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='declname', pretty_print=True):
5892 imported_ns_def_ = GenerateDSNamespaceDefs_.get('declname')
5893 if imported_ns_def_ is not None:
5894 namespacedef_ = imported_ns_def_
5895 if pretty_print:
5896 eol_ = '\n'
5897 else:
5898 eol_ = ''
5899 if self.original_tagname_ is not None and name_ == 'declname':
5900 name_ = self.original_tagname_
5901 if UseCapturedNS_ and self.ns_prefix_:
5902 namespaceprefix_ = self.ns_prefix_ + ':'
5903 showIndent(outfile, level, pretty_print)
5904 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5905 already_processed = set()
5906 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='declname')
5907 if self.hasContent_hasContent_():
5908 outfile.write('>%s' % (eol_, ))
5909 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='declname', pretty_print=pretty_print)
5910 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5911 else:
5912 outfile.write('/>%s' % (eol_, ))
5913 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='declname'):
5914 pass
5915 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='declname', fromsubclass_=False, pretty_print=True):
5916 pass
5917 def build(self, node, gds_collector_=None):
5918 self.gds_collector_ = gds_collector_
5919 if SaveElementTreeNode:
5920 self.gds_elementtree_node_ = node
5921 already_processed = set()
5922 self.ns_prefix_ = node.prefix
5923 self.buildAttributes(node, node.attrib, already_processed)
5924 for child in node:
5925 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
5926 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
5927 return self
5928 def buildAttributes(self, node, attrs, already_processed):
5929 pass
5930 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
5931 pass
5932# end class declname
5933
5934
5935class defname(GeneratedsSuper):
5936 __hash__ = GeneratedsSuper.__hash__
5937 subclass = None
5938 superclass = None
5939 def __init__(self, gds_collector_=None, **kwargs_):
5940 self.gds_collector_ = gds_collector_
5941 self.gds_elementtree_node_ = None
5942 self.original_tagname_ = None
5943 self.parent_object_ = kwargs_.get('parent_object_')
5944 self.ns_prefix_ = None
5945 def factory(*args_, **kwargs_):
5946 if CurrentSubclassModule_ is not None:
5947 subclass = getSubclassFromModule_(
5948 CurrentSubclassModule_, defname)
5949 if subclass is not None:
5950 return subclass(*args_, **kwargs_)
5951 if defname.subclass:
5952 return defname.subclass(*args_, **kwargs_)
5953 else:
5954 return defname(*args_, **kwargs_)
5955 factory = staticmethod(factory)
5957 return self.ns_prefix_
5958 def set_ns_prefix_(self, ns_prefix):
5959 self.ns_prefix_ = ns_prefix
5960 def hasContent_(self):
5961 if (
5962
5963 ):
5964 return True
5965 else:
5966 return False
5967 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='defname', pretty_print=True):
5968 imported_ns_def_ = GenerateDSNamespaceDefs_.get('defname')
5969 if imported_ns_def_ is not None:
5970 namespacedef_ = imported_ns_def_
5971 if pretty_print:
5972 eol_ = '\n'
5973 else:
5974 eol_ = ''
5975 if self.original_tagname_ is not None and name_ == 'defname':
5976 name_ = self.original_tagname_
5977 if UseCapturedNS_ and self.ns_prefix_:
5978 namespaceprefix_ = self.ns_prefix_ + ':'
5979 showIndent(outfile, level, pretty_print)
5980 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
5981 already_processed = set()
5982 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='defname')
5983 if self.hasContent_hasContent_():
5984 outfile.write('>%s' % (eol_, ))
5985 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='defname', pretty_print=pretty_print)
5986 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
5987 else:
5988 outfile.write('/>%s' % (eol_, ))
5989 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='defname'):
5990 pass
5991 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='defname', fromsubclass_=False, pretty_print=True):
5992 pass
5993 def build(self, node, gds_collector_=None):
5994 self.gds_collector_ = gds_collector_
5995 if SaveElementTreeNode:
5996 self.gds_elementtree_node_ = node
5997 already_processed = set()
5998 self.ns_prefix_ = node.prefix
5999 self.buildAttributes(node, node.attrib, already_processed)
6000 for child in node:
6001 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6002 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6003 return self
6004 def buildAttributes(self, node, attrs, already_processed):
6005 pass
6006 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6007 pass
6008# end class defname
6009
6010
6011class array(GeneratedsSuper):
6012 __hash__ = GeneratedsSuper.__hash__
6013 subclass = None
6014 superclass = None
6015 def __init__(self, gds_collector_=None, **kwargs_):
6016 self.gds_collector_ = gds_collector_
6017 self.gds_elementtree_node_ = None
6018 self.original_tagname_ = None
6019 self.parent_object_ = kwargs_.get('parent_object_')
6020 self.ns_prefix_ = None
6021 def factory(*args_, **kwargs_):
6022 if CurrentSubclassModule_ is not None:
6023 subclass = getSubclassFromModule_(
6024 CurrentSubclassModule_, array)
6025 if subclass is not None:
6026 return subclass(*args_, **kwargs_)
6027 if array.subclass:
6028 return array.subclass(*args_, **kwargs_)
6029 else:
6030 return array(*args_, **kwargs_)
6031 factory = staticmethod(factory)
6033 return self.ns_prefix_
6034 def set_ns_prefix_(self, ns_prefix):
6035 self.ns_prefix_ = ns_prefix
6036 def hasContent_(self):
6037 if (
6038
6039 ):
6040 return True
6041 else:
6042 return False
6043 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='array', pretty_print=True):
6044 imported_ns_def_ = GenerateDSNamespaceDefs_.get('array')
6045 if imported_ns_def_ is not None:
6046 namespacedef_ = imported_ns_def_
6047 if pretty_print:
6048 eol_ = '\n'
6049 else:
6050 eol_ = ''
6051 if self.original_tagname_ is not None and name_ == 'array':
6052 name_ = self.original_tagname_
6053 if UseCapturedNS_ and self.ns_prefix_:
6054 namespaceprefix_ = self.ns_prefix_ + ':'
6055 showIndent(outfile, level, pretty_print)
6056 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6057 already_processed = set()
6058 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='array')
6059 if self.hasContent_hasContent_():
6060 outfile.write('>%s' % (eol_, ))
6061 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='array', pretty_print=pretty_print)
6062 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6063 else:
6064 outfile.write('/>%s' % (eol_, ))
6065 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='array'):
6066 pass
6067 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='array', fromsubclass_=False, pretty_print=True):
6068 pass
6069 def build(self, node, gds_collector_=None):
6070 self.gds_collector_ = gds_collector_
6071 if SaveElementTreeNode:
6072 self.gds_elementtree_node_ = node
6073 already_processed = set()
6074 self.ns_prefix_ = node.prefix
6075 self.buildAttributes(node, node.attrib, already_processed)
6076 for child in node:
6077 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6078 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6079 return self
6080 def buildAttributes(self, node, attrs, already_processed):
6081 pass
6082 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6083 pass
6084# end class array
6085
6086
6087class linkedTextType(GeneratedsSuper):
6088 __hash__ = GeneratedsSuper.__hash__
6089 subclass = None
6090 superclass = None
6091 def __init__(self, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
6092 self.gds_collector_ = gds_collector_
6093 self.gds_elementtree_node_ = None
6094 self.original_tagname_ = None
6095 self.parent_object_ = kwargs_.get('parent_object_')
6096 self.ns_prefix_ = None
6097 if ref is None:
6098 self.ref = []
6099 else:
6100 self.ref = ref
6101 self.ref_nsprefix_ = None
6102 self.valueOf_ = valueOf_
6103 if mixedclass_ is None:
6104 self.mixedclass_ = MixedContainer
6105 else:
6106 self.mixedclass_ = mixedclass_
6107 if content_ is None:
6108 self.content_ = []
6109 else:
6110 self.content_ = content_
6111 self.valueOf_ = valueOf_
6112 def factory(*args_, **kwargs_):
6113 if CurrentSubclassModule_ is not None:
6114 subclass = getSubclassFromModule_(
6115 CurrentSubclassModule_, linkedTextType)
6116 if subclass is not None:
6117 return subclass(*args_, **kwargs_)
6118 if linkedTextType.subclass:
6119 return linkedTextType.subclass(*args_, **kwargs_)
6120 else:
6121 return linkedTextType(*args_, **kwargs_)
6122 factory = staticmethod(factory)
6124 return self.ns_prefix_
6125 def set_ns_prefix_(self, ns_prefix):
6126 self.ns_prefix_ = ns_prefix
6127 def get_ref(self):
6128 return self.ref
6129 def set_ref(self, ref):
6130 self.ref = ref
6131 def add_ref(self, value):
6132 self.ref.append(value)
6133 def insert_ref_at(self, index, value):
6134 self.ref.insert(index, value)
6135 def replace_ref_at(self, index, value):
6136 self.ref[index] = value
6137 def get_valueOf_(self): return self.valueOf_
6138 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
6139 def hasContent_(self):
6140 if (
6141 self.ref or
6142 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
6143 self.content_
6144 ):
6145 return True
6146 else:
6147 return False
6148 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='linkedTextType', pretty_print=True):
6149 imported_ns_def_ = GenerateDSNamespaceDefs_.get('linkedTextType')
6150 if imported_ns_def_ is not None:
6151 namespacedef_ = imported_ns_def_
6152 if pretty_print:
6153 eol_ = '\n'
6154 else:
6155 eol_ = ''
6156 if self.original_tagname_ is not None and name_ == 'linkedTextType':
6157 name_ = self.original_tagname_
6158 if UseCapturedNS_ and self.ns_prefix_:
6159 namespaceprefix_ = self.ns_prefix_ + ':'
6160 showIndent(outfile, level, pretty_print)
6161 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6162 already_processed = set()
6163 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='linkedTextType')
6164 if self.hasContent_hasContent_():
6165 outfile.write('>%s' % (eol_, ))
6166 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='linkedTextType', pretty_print=pretty_print)
6167 showIndent(outfile, level, pretty_print)
6168 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6169 else:
6170 outfile.write('/>%s' % (eol_, ))
6171 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='linkedTextType'):
6172 pass
6173 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='linkedTextType', fromsubclass_=False, pretty_print=True):
6174 if not fromsubclass_:
6175 for item_ in self.content_:
6176 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
6177 if pretty_print:
6178 eol_ = '\n'
6179 else:
6180 eol_ = ''
6181 for ref_ in self.ref:
6182 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
6183 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
6184 def build(self, node, gds_collector_=None):
6185 self.gds_collector_ = gds_collector_
6186 if SaveElementTreeNode:
6187 self.gds_elementtree_node_ = node
6188 already_processed = set()
6189 self.ns_prefix_ = node.prefix
6190 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
6191 self.valueOf_ = get_all_text_(node)
6192 if node.text is not None:
6193 obj_ = self.mixedclass_(MixedContainer.CategoryText,
6194 MixedContainer.TypeNone, '', node.text)
6195 self.content_.append(obj_)
6196 for child in node:
6197 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6198 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6199 return self
6200 def buildAttributes(self, node, attrs, already_processed):
6201 pass
6202 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6203 if nodeName_ == 'ref':
6204 obj_ = refTextType.factory(parent_object_=self)
6205 obj_.build(child_, gds_collector_=gds_collector_)
6206 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
6207 MixedContainer.TypeNone, 'ref', obj_)
6208 self.content_.append(obj_)
6209 if hasattr(self, 'add_ref'):
6210 self.add_ref(obj_.value)
6211 elif hasattr(self, 'set_ref'):
6212 self.set_ref(obj_.value)
6213 if not fromsubclass_ and child_.tail is not None:
6214 obj_ = self.mixedclass_(MixedContainer.CategoryText,
6215 MixedContainer.TypeNone, '', child_.tail)
6216 self.content_.append(obj_)
6217# end class linkedTextType
6218
6219
6220class graphType(GeneratedsSuper):
6221 __hash__ = GeneratedsSuper.__hash__
6222 subclass = None
6223 superclass = None
6224 def __init__(self, node=None, gds_collector_=None, **kwargs_):
6225 self.gds_collector_ = gds_collector_
6226 self.gds_elementtree_node_ = None
6227 self.original_tagname_ = None
6228 self.parent_object_ = kwargs_.get('parent_object_')
6229 self.ns_prefix_ = None
6230 if node is None:
6231 self.node = []
6232 else:
6233 self.node = node
6234 self.node_nsprefix_ = None
6235 def factory(*args_, **kwargs_):
6236 if CurrentSubclassModule_ is not None:
6237 subclass = getSubclassFromModule_(
6238 CurrentSubclassModule_, graphType)
6239 if subclass is not None:
6240 return subclass(*args_, **kwargs_)
6241 if graphType.subclass:
6242 return graphType.subclass(*args_, **kwargs_)
6243 else:
6244 return graphType(*args_, **kwargs_)
6245 factory = staticmethod(factory)
6247 return self.ns_prefix_
6248 def set_ns_prefix_(self, ns_prefix):
6249 self.ns_prefix_ = ns_prefix
6250 def get_node(self):
6251 return self.node
6252 def set_node(self, node):
6253 self.node = node
6254 def add_node(self, value):
6255 self.node.append(value)
6256 def insert_node_at(self, index, value):
6257 self.node.insert(index, value)
6258 def replace_node_at(self, index, value):
6259 self.node[index] = value
6260 def hasContent_(self):
6261 if (
6262 self.node
6263 ):
6264 return True
6265 else:
6266 return False
6267 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='graphType', pretty_print=True):
6268 imported_ns_def_ = GenerateDSNamespaceDefs_.get('graphType')
6269 if imported_ns_def_ is not None:
6270 namespacedef_ = imported_ns_def_
6271 if pretty_print:
6272 eol_ = '\n'
6273 else:
6274 eol_ = ''
6275 if self.original_tagname_ is not None and name_ == 'graphType':
6276 name_ = self.original_tagname_
6277 if UseCapturedNS_ and self.ns_prefix_:
6278 namespaceprefix_ = self.ns_prefix_ + ':'
6279 showIndent(outfile, level, pretty_print)
6280 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6281 already_processed = set()
6282 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='graphType')
6283 if self.hasContent_hasContent_():
6284 outfile.write('>%s' % (eol_, ))
6285 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='graphType', pretty_print=pretty_print)
6286 showIndent(outfile, level, pretty_print)
6287 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6288 else:
6289 outfile.write('/>%s' % (eol_, ))
6290 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='graphType'):
6291 pass
6292 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='graphType', fromsubclass_=False, pretty_print=True):
6293 if pretty_print:
6294 eol_ = '\n'
6295 else:
6296 eol_ = ''
6297 for node_ in self.node:
6298 namespaceprefix_ = self.node_nsprefix_ + ':' if (UseCapturedNS_ and self.node_nsprefix_) else ''
6299 node_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='node', pretty_print=pretty_print)
6300 def build(self, node, gds_collector_=None):
6301 self.gds_collector_ = gds_collector_
6302 if SaveElementTreeNode:
6303 self.gds_elementtree_node_ = node
6304 already_processed = set()
6305 self.ns_prefix_ = node.prefix
6306 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
6307 for child in node:
6308 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6309 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6310 return self
6311 def buildAttributes(self, node, attrs, already_processed):
6312 pass
6313 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6314 if nodeName_ == 'node':
6315 obj_ = nodeType.factory(parent_object_=self)
6316 obj_.build(child_, gds_collector_=gds_collector_)
6317 self.node.append(obj_)
6318 obj_.original_tagname_ = 'node'
6319# end class graphType
6320
6321
6322class nodeType(GeneratedsSuper):
6323 __hash__ = GeneratedsSuper.__hash__
6324 subclass = None
6325 superclass = None
6326 def __init__(self, id=None, label=None, link=None, childnode=None, gds_collector_=None, **kwargs_):
6327 self.gds_collector_ = gds_collector_
6328 self.gds_elementtree_node_ = None
6329 self.original_tagname_ = None
6330 self.parent_object_ = kwargs_.get('parent_object_')
6331 self.ns_prefix_ = None
6332 self.id = _cast(None, id)
6333 self.id_nsprefix_ = None
6334 self.label = label
6335 self.label_nsprefix_ = None
6336 self.link = link
6337 self.link_nsprefix_ = None
6338 if childnode is None:
6339 self.childnode = []
6340 else:
6341 self.childnode = childnode
6342 self.childnode_nsprefix_ = None
6343 def factory(*args_, **kwargs_):
6344 if CurrentSubclassModule_ is not None:
6345 subclass = getSubclassFromModule_(
6346 CurrentSubclassModule_, nodeType)
6347 if subclass is not None:
6348 return subclass(*args_, **kwargs_)
6349 if nodeType.subclass:
6350 return nodeType.subclass(*args_, **kwargs_)
6351 else:
6352 return nodeType(*args_, **kwargs_)
6353 factory = staticmethod(factory)
6355 return self.ns_prefix_
6356 def set_ns_prefix_(self, ns_prefix):
6357 self.ns_prefix_ = ns_prefix
6358 def get_label(self):
6359 return self.label
6360 def set_label(self, label):
6361 self.label = label
6362 def get_link(self):
6363 return self.link
6364 def set_link(self, link):
6365 self.link = link
6366 def get_childnode(self):
6367 return self.childnode
6368 def set_childnode(self, childnode):
6369 self.childnode = childnode
6370 def add_childnode(self, value):
6371 self.childnode.append(value)
6372 def insert_childnode_at(self, index, value):
6373 self.childnode.insert(index, value)
6374 def replace_childnode_at(self, index, value):
6375 self.childnode[index] = value
6376 def get_id(self):
6377 return self.id
6378 def set_id(self, id):
6379 self.id = id
6380 def hasContent_(self):
6381 if (
6382 self.label is not None or
6383 self.link is not None or
6384 self.childnode
6385 ):
6386 return True
6387 else:
6388 return False
6389 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='nodeType', pretty_print=True):
6390 imported_ns_def_ = GenerateDSNamespaceDefs_.get('nodeType')
6391 if imported_ns_def_ is not None:
6392 namespacedef_ = imported_ns_def_
6393 if pretty_print:
6394 eol_ = '\n'
6395 else:
6396 eol_ = ''
6397 if self.original_tagname_ is not None and name_ == 'nodeType':
6398 name_ = self.original_tagname_
6399 if UseCapturedNS_ and self.ns_prefix_:
6400 namespaceprefix_ = self.ns_prefix_ + ':'
6401 showIndent(outfile, level, pretty_print)
6402 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6403 already_processed = set()
6404 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nodeType')
6405 if self.hasContent_hasContent_():
6406 outfile.write('>%s' % (eol_, ))
6407 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='nodeType', pretty_print=pretty_print)
6408 showIndent(outfile, level, pretty_print)
6409 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6410 else:
6411 outfile.write('/>%s' % (eol_, ))
6412 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nodeType'):
6413 if self.id is not None and 'id' not in already_processed:
6414 already_processed.add('id')
6415 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
6416 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='nodeType', fromsubclass_=False, pretty_print=True):
6417 if pretty_print:
6418 eol_ = '\n'
6419 else:
6420 eol_ = ''
6421 if self.label is not None:
6422 namespaceprefix_ = self.label_nsprefix_ + ':' if (UseCapturedNS_ and self.label_nsprefix_) else ''
6423 showIndent(outfile, level, pretty_print)
6424 outfile.write('<%slabel>%s</%slabel>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.label), input_name='label')), namespaceprefix_ , eol_))
6425 if self.link is not None:
6426 namespaceprefix_ = self.link_nsprefix_ + ':' if (UseCapturedNS_ and self.link_nsprefix_) else ''
6427 self.link.export(outfile, level, namespaceprefix_, namespacedef_='', name_='link', pretty_print=pretty_print)
6428 for childnode_ in self.childnode:
6429 namespaceprefix_ = self.childnode_nsprefix_ + ':' if (UseCapturedNS_ and self.childnode_nsprefix_) else ''
6430 childnode_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='childnode', pretty_print=pretty_print)
6431 def build(self, node, gds_collector_=None):
6432 self.gds_collector_ = gds_collector_
6433 if SaveElementTreeNode:
6434 self.gds_elementtree_node_ = node
6435 already_processed = set()
6436 self.ns_prefix_ = node.prefix
6437 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
6438 for child in node:
6439 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6440 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6441 return self
6442 def buildAttributes(self, node, attrs, already_processed):
6443 value = find_attr_value_('id', node)
6444 if value is not None and 'id' not in already_processed:
6445 already_processed.add('id')
6446 self.id = value
6447 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6448 if nodeName_ == 'label':
6449 value_ = child_.text
6450 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'label')
6451 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'label')
6452 self.label = value_
6453 self.label_nsprefix_ = child_.prefix
6454 elif nodeName_ == 'link':
6455 obj_ = linkType.factory(parent_object_=self)
6456 obj_.build(child_, gds_collector_=gds_collector_)
6457 self.link = obj_
6458 obj_.original_tagname_ = 'link'
6459 elif nodeName_ == 'childnode':
6460 obj_ = childnodeType.factory(parent_object_=self)
6461 obj_.build(child_, gds_collector_=gds_collector_)
6462 self.childnode.append(obj_)
6463 obj_.original_tagname_ = 'childnode'
6464# end class nodeType
6465
6466
6467class label(GeneratedsSuper):
6468 __hash__ = GeneratedsSuper.__hash__
6469 subclass = None
6470 superclass = None
6471 def __init__(self, gds_collector_=None, **kwargs_):
6472 self.gds_collector_ = gds_collector_
6473 self.gds_elementtree_node_ = None
6474 self.original_tagname_ = None
6475 self.parent_object_ = kwargs_.get('parent_object_')
6476 self.ns_prefix_ = None
6477 def factory(*args_, **kwargs_):
6478 if CurrentSubclassModule_ is not None:
6479 subclass = getSubclassFromModule_(
6480 CurrentSubclassModule_, label)
6481 if subclass is not None:
6482 return subclass(*args_, **kwargs_)
6483 if label.subclass:
6484 return label.subclass(*args_, **kwargs_)
6485 else:
6486 return label(*args_, **kwargs_)
6487 factory = staticmethod(factory)
6489 return self.ns_prefix_
6490 def set_ns_prefix_(self, ns_prefix):
6491 self.ns_prefix_ = ns_prefix
6492 def hasContent_(self):
6493 if (
6494
6495 ):
6496 return True
6497 else:
6498 return False
6499 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='label', pretty_print=True):
6500 imported_ns_def_ = GenerateDSNamespaceDefs_.get('label')
6501 if imported_ns_def_ is not None:
6502 namespacedef_ = imported_ns_def_
6503 if pretty_print:
6504 eol_ = '\n'
6505 else:
6506 eol_ = ''
6507 if self.original_tagname_ is not None and name_ == 'label':
6508 name_ = self.original_tagname_
6509 if UseCapturedNS_ and self.ns_prefix_:
6510 namespaceprefix_ = self.ns_prefix_ + ':'
6511 showIndent(outfile, level, pretty_print)
6512 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6513 already_processed = set()
6514 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='label')
6515 if self.hasContent_hasContent_():
6516 outfile.write('>%s' % (eol_, ))
6517 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='label', pretty_print=pretty_print)
6518 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6519 else:
6520 outfile.write('/>%s' % (eol_, ))
6521 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='label'):
6522 pass
6523 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='label', fromsubclass_=False, pretty_print=True):
6524 pass
6525 def build(self, node, gds_collector_=None):
6526 self.gds_collector_ = gds_collector_
6527 if SaveElementTreeNode:
6528 self.gds_elementtree_node_ = node
6529 already_processed = set()
6530 self.ns_prefix_ = node.prefix
6531 self.buildAttributes(node, node.attrib, already_processed)
6532 for child in node:
6533 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6534 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6535 return self
6536 def buildAttributes(self, node, attrs, already_processed):
6537 pass
6538 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6539 pass
6540# end class label
6541
6542
6543class childnodeType(GeneratedsSuper):
6544 __hash__ = GeneratedsSuper.__hash__
6545 subclass = None
6546 superclass = None
6547 def __init__(self, refid=None, relation=None, edgelabel=None, gds_collector_=None, **kwargs_):
6548 self.gds_collector_ = gds_collector_
6549 self.gds_elementtree_node_ = None
6550 self.original_tagname_ = None
6551 self.parent_object_ = kwargs_.get('parent_object_')
6552 self.ns_prefix_ = None
6553 self.refid = _cast(None, refid)
6554 self.refid_nsprefix_ = None
6555 self.relation = _cast(None, relation)
6556 self.relation_nsprefix_ = None
6557 if edgelabel is None:
6558 self.edgelabel = []
6559 else:
6560 self.edgelabel = edgelabel
6561 self.edgelabel_nsprefix_ = None
6562 def factory(*args_, **kwargs_):
6563 if CurrentSubclassModule_ is not None:
6564 subclass = getSubclassFromModule_(
6565 CurrentSubclassModule_, childnodeType)
6566 if subclass is not None:
6567 return subclass(*args_, **kwargs_)
6568 if childnodeType.subclass:
6569 return childnodeType.subclass(*args_, **kwargs_)
6570 else:
6571 return childnodeType(*args_, **kwargs_)
6572 factory = staticmethod(factory)
6574 return self.ns_prefix_
6575 def set_ns_prefix_(self, ns_prefix):
6576 self.ns_prefix_ = ns_prefix
6577 def get_edgelabel(self):
6578 return self.edgelabel
6579 def set_edgelabel(self, edgelabel):
6580 self.edgelabel = edgelabel
6581 def add_edgelabel(self, value):
6582 self.edgelabel.append(value)
6583 def insert_edgelabel_at(self, index, value):
6584 self.edgelabel.insert(index, value)
6585 def replace_edgelabel_at(self, index, value):
6586 self.edgelabel[index] = value
6587 def get_refid(self):
6588 return self.refid
6589 def set_refid(self, refid):
6590 self.refid = refid
6591 def get_relation(self):
6592 return self.relation
6593 def set_relation(self, relation):
6594 self.relation = relation
6596 # Validate type DoxGraphRelation, a restriction on xsd:string.
6597 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
6598 if not isinstance(value, str):
6600 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
6601 return False
6602 value = value
6603 enumerations = ['include', 'usage', 'template-instance', 'public-inheritance', 'protected-inheritance', 'private-inheritance', 'type-constraint']
6604 if value not in enumerations:
6606 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxGraphRelation' % {"value" : encode_str_2_3(value), "lineno": lineno} )
6607 result = False
6608 def hasContent_(self):
6609 if (
6610 self.edgelabel
6611 ):
6612 return True
6613 else:
6614 return False
6615 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='childnodeType', pretty_print=True):
6616 imported_ns_def_ = GenerateDSNamespaceDefs_.get('childnodeType')
6617 if imported_ns_def_ is not None:
6618 namespacedef_ = imported_ns_def_
6619 if pretty_print:
6620 eol_ = '\n'
6621 else:
6622 eol_ = ''
6623 if self.original_tagname_ is not None and name_ == 'childnodeType':
6624 name_ = self.original_tagname_
6625 if UseCapturedNS_ and self.ns_prefix_:
6626 namespaceprefix_ = self.ns_prefix_ + ':'
6627 showIndent(outfile, level, pretty_print)
6628 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6629 already_processed = set()
6630 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='childnodeType')
6631 if self.hasContent_hasContent_():
6632 outfile.write('>%s' % (eol_, ))
6633 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='childnodeType', pretty_print=pretty_print)
6634 showIndent(outfile, level, pretty_print)
6635 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6636 else:
6637 outfile.write('/>%s' % (eol_, ))
6638 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='childnodeType'):
6639 if self.refid is not None and 'refid' not in already_processed:
6640 already_processed.add('refid')
6641 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
6642 if self.relation is not None and 'relation' not in already_processed:
6643 already_processed.add('relation')
6644 outfile.write(' relation=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.relation), input_name='relation')), ))
6645 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='childnodeType', fromsubclass_=False, pretty_print=True):
6646 if pretty_print:
6647 eol_ = '\n'
6648 else:
6649 eol_ = ''
6650 for edgelabel_ in self.edgelabel:
6651 namespaceprefix_ = self.edgelabel_nsprefix_ + ':' if (UseCapturedNS_ and self.edgelabel_nsprefix_) else ''
6652 showIndent(outfile, level, pretty_print)
6653 outfile.write('<%sedgelabel>%s</%sedgelabel>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(edgelabel_), input_name='edgelabel')), namespaceprefix_ , eol_))
6654 def build(self, node, gds_collector_=None):
6655 self.gds_collector_ = gds_collector_
6656 if SaveElementTreeNode:
6657 self.gds_elementtree_node_ = node
6658 already_processed = set()
6659 self.ns_prefix_ = node.prefix
6660 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
6661 for child in node:
6662 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6663 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6664 return self
6665 def buildAttributes(self, node, attrs, already_processed):
6666 value = find_attr_value_('refid', node)
6667 if value is not None and 'refid' not in already_processed:
6668 already_processed.add('refid')
6669 self.refid = value
6670 value = find_attr_value_('relation', node)
6671 if value is not None and 'relation' not in already_processed:
6672 already_processed.add('relation')
6673 self.relation = value
6674 self.validate_DoxGraphRelationvalidate_DoxGraphRelation(self.relation) # validate type DoxGraphRelation
6675 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6676 if nodeName_ == 'edgelabel':
6677 value_ = child_.text
6678 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'edgelabel')
6679 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'edgelabel')
6680 self.edgelabel.append(value_)
6681 self.edgelabel_nsprefix_ = child_.prefix
6682# end class childnodeType
6683
6684
6686 __hash__ = GeneratedsSuper.__hash__
6687 subclass = None
6688 superclass = None
6689 def __init__(self, gds_collector_=None, **kwargs_):
6690 self.gds_collector_ = gds_collector_
6691 self.gds_elementtree_node_ = None
6692 self.original_tagname_ = None
6693 self.parent_object_ = kwargs_.get('parent_object_')
6694 self.ns_prefix_ = None
6695 def factory(*args_, **kwargs_):
6696 if CurrentSubclassModule_ is not None:
6697 subclass = getSubclassFromModule_(
6698 CurrentSubclassModule_, edgelabel)
6699 if subclass is not None:
6700 return subclass(*args_, **kwargs_)
6701 if edgelabel.subclass:
6702 return edgelabel.subclass(*args_, **kwargs_)
6703 else:
6704 return edgelabel(*args_, **kwargs_)
6705 factory = staticmethod(factory)
6707 return self.ns_prefix_
6708 def set_ns_prefix_(self, ns_prefix):
6709 self.ns_prefix_ = ns_prefix
6710 def hasContent_(self):
6711 if (
6712
6713 ):
6714 return True
6715 else:
6716 return False
6717 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='edgelabel', pretty_print=True):
6718 imported_ns_def_ = GenerateDSNamespaceDefs_.get('edgelabel')
6719 if imported_ns_def_ is not None:
6720 namespacedef_ = imported_ns_def_
6721 if pretty_print:
6722 eol_ = '\n'
6723 else:
6724 eol_ = ''
6725 if self.original_tagname_ is not None and name_ == 'edgelabel':
6726 name_ = self.original_tagname_
6727 if UseCapturedNS_ and self.ns_prefix_:
6728 namespaceprefix_ = self.ns_prefix_ + ':'
6729 showIndent(outfile, level, pretty_print)
6730 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6731 already_processed = set()
6732 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='edgelabel')
6733 if self.hasContent_hasContent_():
6734 outfile.write('>%s' % (eol_, ))
6735 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='edgelabel', pretty_print=pretty_print)
6736 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6737 else:
6738 outfile.write('/>%s' % (eol_, ))
6739 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='edgelabel'):
6740 pass
6741 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='edgelabel', fromsubclass_=False, pretty_print=True):
6742 pass
6743 def build(self, node, gds_collector_=None):
6744 self.gds_collector_ = gds_collector_
6745 if SaveElementTreeNode:
6746 self.gds_elementtree_node_ = node
6747 already_processed = set()
6748 self.ns_prefix_ = node.prefix
6749 self.buildAttributes(node, node.attrib, already_processed)
6750 for child in node:
6751 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6752 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6753 return self
6754 def buildAttributes(self, node, attrs, already_processed):
6755 pass
6756 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6757 pass
6758# end class edgelabel
6759
6760
6761class linkType(GeneratedsSuper):
6762 __hash__ = GeneratedsSuper.__hash__
6763 subclass = None
6764 superclass = None
6765 def __init__(self, refid=None, external=None, gds_collector_=None, **kwargs_):
6766 self.gds_collector_ = gds_collector_
6767 self.gds_elementtree_node_ = None
6768 self.original_tagname_ = None
6769 self.parent_object_ = kwargs_.get('parent_object_')
6770 self.ns_prefix_ = None
6771 self.refid = _cast(None, refid)
6772 self.refid_nsprefix_ = None
6773 self.external = _cast(None, external)
6774 self.external_nsprefix_ = None
6775 def factory(*args_, **kwargs_):
6776 if CurrentSubclassModule_ is not None:
6777 subclass = getSubclassFromModule_(
6778 CurrentSubclassModule_, linkType)
6779 if subclass is not None:
6780 return subclass(*args_, **kwargs_)
6781 if linkType.subclass:
6782 return linkType.subclass(*args_, **kwargs_)
6783 else:
6784 return linkType(*args_, **kwargs_)
6785 factory = staticmethod(factory)
6787 return self.ns_prefix_
6788 def set_ns_prefix_(self, ns_prefix):
6789 self.ns_prefix_ = ns_prefix
6790 def get_refid(self):
6791 return self.refid
6792 def set_refid(self, refid):
6793 self.refid = refid
6794 def get_external(self):
6795 return self.external
6796 def set_external(self, external):
6797 self.external = external
6798 def hasContent_(self):
6799 if (
6800
6801 ):
6802 return True
6803 else:
6804 return False
6805 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='linkType', pretty_print=True):
6806 imported_ns_def_ = GenerateDSNamespaceDefs_.get('linkType')
6807 if imported_ns_def_ is not None:
6808 namespacedef_ = imported_ns_def_
6809 if pretty_print:
6810 eol_ = '\n'
6811 else:
6812 eol_ = ''
6813 if self.original_tagname_ is not None and name_ == 'linkType':
6814 name_ = self.original_tagname_
6815 if UseCapturedNS_ and self.ns_prefix_:
6816 namespaceprefix_ = self.ns_prefix_ + ':'
6817 showIndent(outfile, level, pretty_print)
6818 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6819 already_processed = set()
6820 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='linkType')
6821 if self.hasContent_hasContent_():
6822 outfile.write('>%s' % (eol_, ))
6823 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='linkType', pretty_print=pretty_print)
6824 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6825 else:
6826 outfile.write('/>%s' % (eol_, ))
6827 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='linkType'):
6828 if self.refid is not None and 'refid' not in already_processed:
6829 already_processed.add('refid')
6830 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
6831 if self.external is not None and 'external' not in already_processed:
6832 already_processed.add('external')
6833 outfile.write(' external=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.external), input_name='external')), ))
6834 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='linkType', fromsubclass_=False, pretty_print=True):
6835 pass
6836 def build(self, node, gds_collector_=None):
6837 self.gds_collector_ = gds_collector_
6838 if SaveElementTreeNode:
6839 self.gds_elementtree_node_ = node
6840 already_processed = set()
6841 self.ns_prefix_ = node.prefix
6842 self.buildAttributes(node, node.attrib, already_processed)
6843 for child in node:
6844 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6845 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6846 return self
6847 def buildAttributes(self, node, attrs, already_processed):
6848 value = find_attr_value_('refid', node)
6849 if value is not None and 'refid' not in already_processed:
6850 already_processed.add('refid')
6851 self.refid = value
6852 value = find_attr_value_('external', node)
6853 if value is not None and 'external' not in already_processed:
6854 already_processed.add('external')
6855 self.external = value
6856 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6857 pass
6858# end class linkType
6859
6860
6861class listingType(GeneratedsSuper):
6862 __hash__ = GeneratedsSuper.__hash__
6863 subclass = None
6864 superclass = None
6865 def __init__(self, filename=None, codeline=None, gds_collector_=None, **kwargs_):
6866 self.gds_collector_ = gds_collector_
6867 self.gds_elementtree_node_ = None
6868 self.original_tagname_ = None
6869 self.parent_object_ = kwargs_.get('parent_object_')
6870 self.ns_prefix_ = None
6871 self.filename = _cast(None, filename)
6872 self.filename_nsprefix_ = None
6873 if codeline is None:
6874 self.codeline = []
6875 else:
6876 self.codeline = codeline
6877 self.codeline_nsprefix_ = None
6878 def factory(*args_, **kwargs_):
6879 if CurrentSubclassModule_ is not None:
6880 subclass = getSubclassFromModule_(
6881 CurrentSubclassModule_, listingType)
6882 if subclass is not None:
6883 return subclass(*args_, **kwargs_)
6884 if listingType.subclass:
6885 return listingType.subclass(*args_, **kwargs_)
6886 else:
6887 return listingType(*args_, **kwargs_)
6888 factory = staticmethod(factory)
6890 return self.ns_prefix_
6891 def set_ns_prefix_(self, ns_prefix):
6892 self.ns_prefix_ = ns_prefix
6893 def get_codeline(self):
6894 return self.codeline
6895 def set_codeline(self, codeline):
6896 self.codeline = codeline
6897 def add_codeline(self, value):
6898 self.codeline.append(value)
6899 def insert_codeline_at(self, index, value):
6900 self.codeline.insert(index, value)
6901 def replace_codeline_at(self, index, value):
6902 self.codeline[index] = value
6903 def get_filename(self):
6904 return self.filename
6905 def set_filename(self, filename):
6906 self.filename = filename
6907 def hasContent_(self):
6908 if (
6909 self.codeline
6910 ):
6911 return True
6912 else:
6913 return False
6914 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listingType', pretty_print=True):
6915 imported_ns_def_ = GenerateDSNamespaceDefs_.get('listingType')
6916 if imported_ns_def_ is not None:
6917 namespacedef_ = imported_ns_def_
6918 if pretty_print:
6919 eol_ = '\n'
6920 else:
6921 eol_ = ''
6922 if self.original_tagname_ is not None and name_ == 'listingType':
6923 name_ = self.original_tagname_
6924 if UseCapturedNS_ and self.ns_prefix_:
6925 namespaceprefix_ = self.ns_prefix_ + ':'
6926 showIndent(outfile, level, pretty_print)
6927 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
6928 already_processed = set()
6929 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='listingType')
6930 if self.hasContent_hasContent_():
6931 outfile.write('>%s' % (eol_, ))
6932 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='listingType', pretty_print=pretty_print)
6933 showIndent(outfile, level, pretty_print)
6934 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
6935 else:
6936 outfile.write('/>%s' % (eol_, ))
6937 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='listingType'):
6938 if self.filename is not None and 'filename' not in already_processed:
6939 already_processed.add('filename')
6940 outfile.write(' filename=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.filename), input_name='filename')), ))
6941 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listingType', fromsubclass_=False, pretty_print=True):
6942 if pretty_print:
6943 eol_ = '\n'
6944 else:
6945 eol_ = ''
6946 for codeline_ in self.codeline:
6947 namespaceprefix_ = self.codeline_nsprefix_ + ':' if (UseCapturedNS_ and self.codeline_nsprefix_) else ''
6948 codeline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='codeline', pretty_print=pretty_print)
6949 def build(self, node, gds_collector_=None):
6950 self.gds_collector_ = gds_collector_
6951 if SaveElementTreeNode:
6952 self.gds_elementtree_node_ = node
6953 already_processed = set()
6954 self.ns_prefix_ = node.prefix
6955 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
6956 for child in node:
6957 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
6958 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
6959 return self
6960 def buildAttributes(self, node, attrs, already_processed):
6961 value = find_attr_value_('filename', node)
6962 if value is not None and 'filename' not in already_processed:
6963 already_processed.add('filename')
6964 self.filename = value
6965 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
6966 if nodeName_ == 'codeline':
6967 obj_ = codelineType.factory(parent_object_=self)
6968 obj_.build(child_, gds_collector_=gds_collector_)
6969 self.codeline.append(obj_)
6970 obj_.original_tagname_ = 'codeline'
6971# end class listingType
6972
6973
6975 __hash__ = GeneratedsSuper.__hash__
6976 subclass = None
6977 superclass = None
6978 def __init__(self, lineno=None, refid=None, refkind=None, external=None, highlight=None, gds_collector_=None, **kwargs_):
6979 self.gds_collector_ = gds_collector_
6980 self.gds_elementtree_node_ = None
6981 self.original_tagname_ = None
6982 self.parent_object_ = kwargs_.get('parent_object_')
6983 self.ns_prefix_ = None
6984 self.lineno = _cast(int, lineno)
6985 self.lineno_nsprefix_ = None
6986 self.refid = _cast(None, refid)
6987 self.refid_nsprefix_ = None
6988 self.refkind = _cast(None, refkind)
6989 self.refkind_nsprefix_ = None
6990 self.external = _cast(None, external)
6991 self.external_nsprefix_ = None
6992 if highlight is None:
6993 self.highlight = []
6994 else:
6995 self.highlight = highlight
6996 self.highlight_nsprefix_ = None
6997 def factory(*args_, **kwargs_):
6998 if CurrentSubclassModule_ is not None:
6999 subclass = getSubclassFromModule_(
7000 CurrentSubclassModule_, codelineType)
7001 if subclass is not None:
7002 return subclass(*args_, **kwargs_)
7003 if codelineType.subclass:
7004 return codelineType.subclass(*args_, **kwargs_)
7005 else:
7006 return codelineType(*args_, **kwargs_)
7007 factory = staticmethod(factory)
7009 return self.ns_prefix_
7010 def set_ns_prefix_(self, ns_prefix):
7011 self.ns_prefix_ = ns_prefix
7012 def get_highlight(self):
7013 return self.highlight
7014 def set_highlight(self, highlight):
7015 self.highlight = highlight
7016 def add_highlight(self, value):
7017 self.highlight.append(value)
7018 def insert_highlight_at(self, index, value):
7019 self.highlight.insert(index, value)
7020 def replace_highlight_at(self, index, value):
7021 self.highlight[index] = value
7022 def get_lineno(self):
7023 return self.lineno
7024 def set_lineno(self, lineno):
7025 self.lineno = lineno
7026 def get_refid(self):
7027 return self.refid
7028 def set_refid(self, refid):
7029 self.refid = refid
7030 def get_refkind(self):
7031 return self.refkind
7032 def set_refkind(self, refkind):
7033 self.refkind = refkind
7034 def get_external(self):
7035 return self.external
7036 def set_external(self, external):
7037 self.external = external
7038 def validate_DoxRefKind(self, value):
7039 # Validate type DoxRefKind, a restriction on xsd:string.
7040 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
7041 if not isinstance(value, str):
7043 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
7044 return False
7045 value = value
7046 enumerations = ['compound', 'member']
7047 if value not in enumerations:
7049 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxRefKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
7050 result = False
7051 def validate_DoxBool(self, value):
7052 # Validate type DoxBool, a restriction on xsd:string.
7053 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
7054 if not isinstance(value, str):
7056 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
7057 return False
7058 value = value
7059 enumerations = ['yes', 'no']
7060 if value not in enumerations:
7062 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
7063 result = False
7064 def hasContent_(self):
7065 if (
7066 self.highlight
7067 ):
7068 return True
7069 else:
7070 return False
7071 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='codelineType', pretty_print=True):
7072 imported_ns_def_ = GenerateDSNamespaceDefs_.get('codelineType')
7073 if imported_ns_def_ is not None:
7074 namespacedef_ = imported_ns_def_
7075 if pretty_print:
7076 eol_ = '\n'
7077 else:
7078 eol_ = ''
7079 if self.original_tagname_ is not None and name_ == 'codelineType':
7080 name_ = self.original_tagname_
7081 if UseCapturedNS_ and self.ns_prefix_:
7082 namespaceprefix_ = self.ns_prefix_ + ':'
7083 showIndent(outfile, level, pretty_print)
7084 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
7085 already_processed = set()
7086 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='codelineType')
7087 if self.hasContent_hasContent_():
7088 outfile.write('>%s' % (eol_, ))
7089 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='codelineType', pretty_print=pretty_print)
7090 showIndent(outfile, level, pretty_print)
7091 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
7092 else:
7093 outfile.write('/>%s' % (eol_, ))
7094 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='codelineType'):
7095 if self.lineno is not None and 'lineno' not in already_processed:
7096 already_processed.add('lineno')
7097 outfile.write(' lineno="%s"' % self.gds_format_integergds_format_integer(self.lineno, input_name='lineno'))
7098 if self.refid is not None and 'refid' not in already_processed:
7099 already_processed.add('refid')
7100 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
7101 if self.refkind is not None and 'refkind' not in already_processed:
7102 already_processed.add('refkind')
7103 outfile.write(' refkind=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refkind), input_name='refkind')), ))
7104 if self.external is not None and 'external' not in already_processed:
7105 already_processed.add('external')
7106 outfile.write(' external=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.external), input_name='external')), ))
7107 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='codelineType', fromsubclass_=False, pretty_print=True):
7108 if pretty_print:
7109 eol_ = '\n'
7110 else:
7111 eol_ = ''
7112 for highlight_ in self.highlight:
7113 namespaceprefix_ = self.highlight_nsprefix_ + ':' if (UseCapturedNS_ and self.highlight_nsprefix_) else ''
7114 highlight_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='highlight', pretty_print=pretty_print)
7115 def build(self, node, gds_collector_=None):
7116 self.gds_collector_ = gds_collector_
7117 if SaveElementTreeNode:
7118 self.gds_elementtree_node_ = node
7119 already_processed = set()
7120 self.ns_prefix_ = node.prefix
7121 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
7122 for child in node:
7123 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
7124 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
7125 return self
7126 def buildAttributes(self, node, attrs, already_processed):
7127 value = find_attr_value_('lineno', node)
7128 if value is not None and 'lineno' not in already_processed:
7129 already_processed.add('lineno')
7130 self.lineno = self.gds_parse_integergds_parse_integer(value, node, 'lineno')
7131 value = find_attr_value_('refid', node)
7132 if value is not None and 'refid' not in already_processed:
7133 already_processed.add('refid')
7134 self.refid = value
7135 value = find_attr_value_('refkind', node)
7136 if value is not None and 'refkind' not in already_processed:
7137 already_processed.add('refkind')
7138 self.refkind = value
7139 self.validate_DoxRefKindvalidate_DoxRefKind(self.refkind) # validate type DoxRefKind
7140 value = find_attr_value_('external', node)
7141 if value is not None and 'external' not in already_processed:
7142 already_processed.add('external')
7143 self.external = value
7144 self.validate_DoxBoolvalidate_DoxBool(self.external) # validate type DoxBool
7145 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
7146 if nodeName_ == 'highlight':
7147 obj_ = highlightType.factory(parent_object_=self)
7148 obj_.build(child_, gds_collector_=gds_collector_)
7149 self.highlight.append(obj_)
7150 obj_.original_tagname_ = 'highlight'
7151# end class codelineType
7152
7153
7155 __hash__ = GeneratedsSuper.__hash__
7156 subclass = None
7157 superclass = None
7158 def __init__(self, class_=None, sp=None, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
7159 self.gds_collector_ = gds_collector_
7160 self.gds_elementtree_node_ = None
7161 self.original_tagname_ = None
7162 self.parent_object_ = kwargs_.get('parent_object_')
7163 self.ns_prefix_ = None
7164 self.class_ = _cast(None, class_)
7165 self.class__nsprefix_ = None
7166 if sp is None:
7167 self.sp = []
7168 else:
7169 self.sp = sp
7170 self.sp_nsprefix_ = None
7171 if ref is None:
7172 self.ref = []
7173 else:
7174 self.ref = ref
7175 self.ref_nsprefix_ = None
7176 self.valueOf_ = valueOf_
7177 if mixedclass_ is None:
7178 self.mixedclass_ = MixedContainer
7179 else:
7180 self.mixedclass_ = mixedclass_
7181 if content_ is None:
7182 self.content_ = []
7183 else:
7184 self.content_ = content_
7185 self.valueOf_ = valueOf_
7186 def factory(*args_, **kwargs_):
7187 if CurrentSubclassModule_ is not None:
7188 subclass = getSubclassFromModule_(
7189 CurrentSubclassModule_, highlightType)
7190 if subclass is not None:
7191 return subclass(*args_, **kwargs_)
7192 if highlightType.subclass:
7193 return highlightType.subclass(*args_, **kwargs_)
7194 else:
7195 return highlightType(*args_, **kwargs_)
7196 factory = staticmethod(factory)
7198 return self.ns_prefix_
7199 def set_ns_prefix_(self, ns_prefix):
7200 self.ns_prefix_ = ns_prefix
7201 def get_sp(self):
7202 return self.sp
7203 def set_sp(self, sp):
7204 self.sp = sp
7205 def add_sp(self, value):
7206 self.sp.append(value)
7207 def insert_sp_at(self, index, value):
7208 self.sp.insert(index, value)
7209 def replace_sp_at(self, index, value):
7210 self.sp[index] = value
7211 def get_ref(self):
7212 return self.ref
7213 def set_ref(self, ref):
7214 self.ref = ref
7215 def add_ref(self, value):
7216 self.ref.append(value)
7217 def insert_ref_at(self, index, value):
7218 self.ref.insert(index, value)
7219 def replace_ref_at(self, index, value):
7220 self.ref[index] = value
7221 def get_class(self):
7222 return self.class_
7223 def set_class(self, class_):
7224 self.class_ = class_
7225 def get_valueOf_(self): return self.valueOf_
7226 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
7228 # Validate type DoxHighlightClass, a restriction on xsd:string.
7229 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
7230 if not isinstance(value, str):
7232 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
7233 return False
7234 value = value
7235 enumerations = ['comment', 'normal', 'preprocessor', 'keyword', 'keywordtype', 'keywordflow', 'stringliteral', 'charliteral', 'vhdlkeyword', 'vhdllogic', 'vhdlchar', 'vhdldigit']
7236 if value not in enumerations:
7238 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxHighlightClass' % {"value" : encode_str_2_3(value), "lineno": lineno} )
7239 result = False
7240 def hasContent_(self):
7241 if (
7242 self.sp or
7243 self.ref or
7244 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
7245 self.content_
7246 ):
7247 return True
7248 else:
7249 return False
7250 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='highlightType', pretty_print=True):
7251 imported_ns_def_ = GenerateDSNamespaceDefs_.get('highlightType')
7252 if imported_ns_def_ is not None:
7253 namespacedef_ = imported_ns_def_
7254 if pretty_print:
7255 eol_ = '\n'
7256 else:
7257 eol_ = ''
7258 if self.original_tagname_ is not None and name_ == 'highlightType':
7259 name_ = self.original_tagname_
7260 if UseCapturedNS_ and self.ns_prefix_:
7261 namespaceprefix_ = self.ns_prefix_ + ':'
7262 showIndent(outfile, level, pretty_print)
7263 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
7264 already_processed = set()
7265 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='highlightType')
7266 if self.hasContent_hasContent_():
7267 outfile.write('>%s' % (eol_, ))
7268 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='highlightType', pretty_print=pretty_print)
7269 showIndent(outfile, level, pretty_print)
7270 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
7271 else:
7272 outfile.write('/>%s' % (eol_, ))
7273 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='highlightType'):
7274 if self.class_ is not None and 'class_' not in already_processed:
7275 already_processed.add('class_')
7276 outfile.write(' class=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.class_), input_name='class')), ))
7277 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='highlightType', fromsubclass_=False, pretty_print=True):
7278 if not fromsubclass_:
7279 for item_ in self.content_:
7280 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
7281 if pretty_print:
7282 eol_ = '\n'
7283 else:
7284 eol_ = ''
7285 for sp_ in self.sp:
7286 namespaceprefix_ = self.sp_nsprefix_ + ':' if (UseCapturedNS_ and self.sp_nsprefix_) else ''
7287 sp_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sp', pretty_print=pretty_print)
7288 for ref_ in self.ref:
7289 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
7290 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
7291 def build(self, node, gds_collector_=None):
7292 self.gds_collector_ = gds_collector_
7293 if SaveElementTreeNode:
7294 self.gds_elementtree_node_ = node
7295 already_processed = set()
7296 self.ns_prefix_ = node.prefix
7297 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
7298 self.valueOf_ = get_all_text_(node)
7299 if node.text is not None:
7300 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7301 MixedContainer.TypeNone, '', node.text)
7302 self.content_.append(obj_)
7303 for child in node:
7304 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
7305 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
7306 return self
7307 def buildAttributes(self, node, attrs, already_processed):
7308 value = find_attr_value_('class', node)
7309 if value is not None and 'class' not in already_processed:
7310 already_processed.add('class')
7311 self.class_ = value
7312 self.validate_DoxHighlightClassvalidate_DoxHighlightClass(self.class_) # validate type DoxHighlightClass
7313 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
7314 if nodeName_ == 'sp':
7315 obj_ = spType.factory(parent_object_=self)
7316 obj_.build(child_, gds_collector_=gds_collector_)
7317 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
7318 MixedContainer.TypeNone, 'sp', obj_)
7319 self.content_.append(obj_)
7320 if hasattr(self, 'add_sp'):
7321 self.add_spadd_sp(obj_.value)
7322 elif hasattr(self, 'set_sp'):
7323 self.set_spset_sp(obj_.value)
7324 elif nodeName_ == 'ref':
7325 obj_ = refTextType.factory(parent_object_=self)
7326 obj_.build(child_, gds_collector_=gds_collector_)
7327 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
7328 MixedContainer.TypeNone, 'ref', obj_)
7329 self.content_.append(obj_)
7330 if hasattr(self, 'add_ref'):
7331 self.add_refadd_ref(obj_.value)
7332 elif hasattr(self, 'set_ref'):
7333 self.set_refset_ref(obj_.value)
7334 if not fromsubclass_ and child_.tail is not None:
7335 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7336 MixedContainer.TypeNone, '', child_.tail)
7337 self.content_.append(obj_)
7338# end class highlightType
7339
7340
7341class spType(GeneratedsSuper):
7342 __hash__ = GeneratedsSuper.__hash__
7343 subclass = None
7344 superclass = None
7345 def __init__(self, value=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
7346 self.gds_collector_ = gds_collector_
7347 self.gds_elementtree_node_ = None
7348 self.original_tagname_ = None
7349 self.parent_object_ = kwargs_.get('parent_object_')
7350 self.ns_prefix_ = None
7351 self.value = _cast(int, value)
7352 self.value_nsprefix_ = None
7353 self.valueOf_ = valueOf_
7354 if mixedclass_ is None:
7355 self.mixedclass_ = MixedContainer
7356 else:
7357 self.mixedclass_ = mixedclass_
7358 if content_ is None:
7359 self.content_ = []
7360 else:
7361 self.content_ = content_
7362 self.valueOf_ = valueOf_
7363 def factory(*args_, **kwargs_):
7364 if CurrentSubclassModule_ is not None:
7365 subclass = getSubclassFromModule_(
7366 CurrentSubclassModule_, spType)
7367 if subclass is not None:
7368 return subclass(*args_, **kwargs_)
7369 if spType.subclass:
7370 return spType.subclass(*args_, **kwargs_)
7371 else:
7372 return spType(*args_, **kwargs_)
7373 factory = staticmethod(factory)
7375 return self.ns_prefix_
7376 def set_ns_prefix_(self, ns_prefix):
7377 self.ns_prefix_ = ns_prefix
7378 def get_value(self):
7379 return self.value
7380 def set_value(self, value):
7381 self.value = value
7382 def get_valueOf_(self): return self.valueOf_
7383 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
7384 def hasContent_(self):
7385 if (
7386 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
7387 self.content_
7388 ):
7389 return True
7390 else:
7391 return False
7392 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='spType', pretty_print=True):
7393 imported_ns_def_ = GenerateDSNamespaceDefs_.get('spType')
7394 if imported_ns_def_ is not None:
7395 namespacedef_ = imported_ns_def_
7396 if pretty_print:
7397 eol_ = '\n'
7398 else:
7399 eol_ = ''
7400 if self.original_tagname_ is not None and name_ == 'spType':
7401 name_ = self.original_tagname_
7402 if UseCapturedNS_ and self.ns_prefix_:
7403 namespaceprefix_ = self.ns_prefix_ + ':'
7404 showIndent(outfile, level, pretty_print)
7405 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
7406 already_processed = set()
7407 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='spType')
7408 outfile.write('>')
7409 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_, pretty_print=pretty_print)
7410 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
7411 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
7412 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='spType'):
7413 if self.value is not None and 'value' not in already_processed:
7414 already_processed.add('value')
7415 outfile.write(' value="%s"' % self.gds_format_integergds_format_integer(self.value, input_name='value'))
7416 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='spType', fromsubclass_=False, pretty_print=True):
7417 pass
7418 def build(self, node, gds_collector_=None):
7419 self.gds_collector_ = gds_collector_
7420 if SaveElementTreeNode:
7421 self.gds_elementtree_node_ = node
7422 already_processed = set()
7423 self.ns_prefix_ = node.prefix
7424 self.buildAttributes(node, node.attrib, already_processed)
7425 self.valueOf_ = get_all_text_(node)
7426 if node.text is not None:
7427 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7428 MixedContainer.TypeNone, '', node.text)
7429 self.content_.append(obj_)
7430 for child in node:
7431 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
7432 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
7433 return self
7434 def buildAttributes(self, node, attrs, already_processed):
7435 value = find_attr_value_('value', node)
7436 if value is not None and 'value' not in already_processed:
7437 already_processed.add('value')
7438 self.value = self.gds_parse_integergds_parse_integer(value, node, 'value')
7439 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
7440 if not fromsubclass_ and child_.tail is not None:
7441 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7442 MixedContainer.TypeNone, '', child_.tail)
7443 self.content_.append(obj_)
7444 pass
7445# end class spType
7446
7447
7449 __hash__ = GeneratedsSuper.__hash__
7450 subclass = None
7451 superclass = None
7452 def __init__(self, refid=None, compoundref=None, startline=None, endline=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
7453 self.gds_collector_ = gds_collector_
7454 self.gds_elementtree_node_ = None
7455 self.original_tagname_ = None
7456 self.parent_object_ = kwargs_.get('parent_object_')
7457 self.ns_prefix_ = None
7458 self.refid = _cast(None, refid)
7459 self.refid_nsprefix_ = None
7460 self.compoundref = _cast(None, compoundref)
7461 self.compoundref_nsprefix_ = None
7462 self.startline = _cast(int, startline)
7463 self.startline_nsprefix_ = None
7464 self.endline = _cast(int, endline)
7465 self.endline_nsprefix_ = None
7466 self.valueOf_ = valueOf_
7467 if mixedclass_ is None:
7468 self.mixedclass_ = MixedContainer
7469 else:
7470 self.mixedclass_ = mixedclass_
7471 if content_ is None:
7472 self.content_ = []
7473 else:
7474 self.content_ = content_
7475 self.valueOf_ = valueOf_
7476 def factory(*args_, **kwargs_):
7477 if CurrentSubclassModule_ is not None:
7478 subclass = getSubclassFromModule_(
7479 CurrentSubclassModule_, referenceType)
7480 if subclass is not None:
7481 return subclass(*args_, **kwargs_)
7482 if referenceType.subclass:
7483 return referenceType.subclass(*args_, **kwargs_)
7484 else:
7485 return referenceType(*args_, **kwargs_)
7486 factory = staticmethod(factory)
7488 return self.ns_prefix_
7489 def set_ns_prefix_(self, ns_prefix):
7490 self.ns_prefix_ = ns_prefix
7491 def get_refid(self):
7492 return self.refid
7493 def set_refid(self, refid):
7494 self.refid = refid
7496 return self.compoundref
7497 def set_compoundref(self, compoundref):
7498 self.compoundref = compoundref
7499 def get_startline(self):
7500 return self.startline
7501 def set_startline(self, startline):
7502 self.startline = startline
7503 def get_endline(self):
7504 return self.endline
7505 def set_endline(self, endline):
7506 self.endline = endline
7507 def get_valueOf_(self): return self.valueOf_
7508 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
7509 def hasContent_(self):
7510 if (
7511 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
7512 self.content_
7513 ):
7514 return True
7515 else:
7516 return False
7517 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='referenceType', pretty_print=True):
7518 imported_ns_def_ = GenerateDSNamespaceDefs_.get('referenceType')
7519 if imported_ns_def_ is not None:
7520 namespacedef_ = imported_ns_def_
7521 if pretty_print:
7522 eol_ = '\n'
7523 else:
7524 eol_ = ''
7525 if self.original_tagname_ is not None and name_ == 'referenceType':
7526 name_ = self.original_tagname_
7527 if UseCapturedNS_ and self.ns_prefix_:
7528 namespaceprefix_ = self.ns_prefix_ + ':'
7529 showIndent(outfile, level, pretty_print)
7530 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
7531 already_processed = set()
7532 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='referenceType')
7533 outfile.write('>')
7534 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_, pretty_print=pretty_print)
7535 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
7536 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
7537 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='referenceType'):
7538 if self.refid is not None and 'refid' not in already_processed:
7539 already_processed.add('refid')
7540 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
7541 if self.compoundref is not None and 'compoundref' not in already_processed:
7542 already_processed.add('compoundref')
7543 outfile.write(' compoundref=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.compoundref), input_name='compoundref')), ))
7544 if self.startline is not None and 'startline' not in already_processed:
7545 already_processed.add('startline')
7546 outfile.write(' startline="%s"' % self.gds_format_integergds_format_integer(self.startline, input_name='startline'))
7547 if self.endline is not None and 'endline' not in already_processed:
7548 already_processed.add('endline')
7549 outfile.write(' endline="%s"' % self.gds_format_integergds_format_integer(self.endline, input_name='endline'))
7550 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='referenceType', fromsubclass_=False, pretty_print=True):
7551 pass
7552 def build(self, node, gds_collector_=None):
7553 self.gds_collector_ = gds_collector_
7554 if SaveElementTreeNode:
7555 self.gds_elementtree_node_ = node
7556 already_processed = set()
7557 self.ns_prefix_ = node.prefix
7558 self.buildAttributes(node, node.attrib, already_processed)
7559 self.valueOf_ = get_all_text_(node)
7560 if node.text is not None:
7561 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7562 MixedContainer.TypeNone, '', node.text)
7563 self.content_.append(obj_)
7564 for child in node:
7565 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
7566 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
7567 return self
7568 def buildAttributes(self, node, attrs, already_processed):
7569 value = find_attr_value_('refid', node)
7570 if value is not None and 'refid' not in already_processed:
7571 already_processed.add('refid')
7572 self.refid = value
7573 value = find_attr_value_('compoundref', node)
7574 if value is not None and 'compoundref' not in already_processed:
7575 already_processed.add('compoundref')
7576 self.compoundref = value
7577 value = find_attr_value_('startline', node)
7578 if value is not None and 'startline' not in already_processed:
7579 already_processed.add('startline')
7580 self.startline = self.gds_parse_integergds_parse_integer(value, node, 'startline')
7581 value = find_attr_value_('endline', node)
7582 if value is not None and 'endline' not in already_processed:
7583 already_processed.add('endline')
7584 self.endline = self.gds_parse_integergds_parse_integer(value, node, 'endline')
7585 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
7586 if not fromsubclass_ and child_.tail is not None:
7587 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7588 MixedContainer.TypeNone, '', child_.tail)
7589 self.content_.append(obj_)
7590 pass
7591# end class referenceType
7592
7593
7595 __hash__ = GeneratedsSuper.__hash__
7596 subclass = None
7597 superclass = None
7598 def __init__(self, file=None, line=None, column=None, declfile=None, declline=None, declcolumn=None, bodyfile=None, bodystart=None, bodyend=None, gds_collector_=None, **kwargs_):
7599 self.gds_collector_ = gds_collector_
7600 self.gds_elementtree_node_ = None
7601 self.original_tagname_ = None
7602 self.parent_object_ = kwargs_.get('parent_object_')
7603 self.ns_prefix_ = None
7604 self.file = _cast(None, file)
7605 self.file_nsprefix_ = None
7606 self.line = _cast(int, line)
7607 self.line_nsprefix_ = None
7608 self.column = _cast(int, column)
7609 self.column_nsprefix_ = None
7610 self.declfile = _cast(None, declfile)
7611 self.declfile_nsprefix_ = None
7612 self.declline = _cast(int, declline)
7613 self.declline_nsprefix_ = None
7614 self.declcolumn = _cast(int, declcolumn)
7615 self.declcolumn_nsprefix_ = None
7616 self.bodyfile = _cast(None, bodyfile)
7617 self.bodyfile_nsprefix_ = None
7618 self.bodystart = _cast(int, bodystart)
7619 self.bodystart_nsprefix_ = None
7620 self.bodyend = _cast(int, bodyend)
7621 self.bodyend_nsprefix_ = None
7622 def factory(*args_, **kwargs_):
7623 if CurrentSubclassModule_ is not None:
7624 subclass = getSubclassFromModule_(
7625 CurrentSubclassModule_, locationType)
7626 if subclass is not None:
7627 return subclass(*args_, **kwargs_)
7628 if locationType.subclass:
7629 return locationType.subclass(*args_, **kwargs_)
7630 else:
7631 return locationType(*args_, **kwargs_)
7632 factory = staticmethod(factory)
7634 return self.ns_prefix_
7635 def set_ns_prefix_(self, ns_prefix):
7636 self.ns_prefix_ = ns_prefix
7637 def get_file(self):
7638 return self.file
7639 def set_file(self, file):
7640 self.file = file
7641 def get_line(self):
7642 return self.line
7643 def set_line(self, line):
7644 self.line = line
7645 def get_column(self):
7646 return self.column
7647 def set_column(self, column):
7648 self.column = column
7649 def get_declfile(self):
7650 return self.declfile
7651 def set_declfile(self, declfile):
7652 self.declfile = declfile
7653 def get_declline(self):
7654 return self.declline
7655 def set_declline(self, declline):
7656 self.declline = declline
7658 return self.declcolumn
7659 def set_declcolumn(self, declcolumn):
7660 self.declcolumn = declcolumn
7661 def get_bodyfile(self):
7662 return self.bodyfile
7663 def set_bodyfile(self, bodyfile):
7664 self.bodyfile = bodyfile
7665 def get_bodystart(self):
7666 return self.bodystart
7667 def set_bodystart(self, bodystart):
7668 self.bodystart = bodystart
7669 def get_bodyend(self):
7670 return self.bodyend
7671 def set_bodyend(self, bodyend):
7672 self.bodyend = bodyend
7673 def hasContent_(self):
7674 if (
7675
7676 ):
7677 return True
7678 else:
7679 return False
7680 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='locationType', pretty_print=True):
7681 imported_ns_def_ = GenerateDSNamespaceDefs_.get('locationType')
7682 if imported_ns_def_ is not None:
7683 namespacedef_ = imported_ns_def_
7684 if pretty_print:
7685 eol_ = '\n'
7686 else:
7687 eol_ = ''
7688 if self.original_tagname_ is not None and name_ == 'locationType':
7689 name_ = self.original_tagname_
7690 if UseCapturedNS_ and self.ns_prefix_:
7691 namespaceprefix_ = self.ns_prefix_ + ':'
7692 showIndent(outfile, level, pretty_print)
7693 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
7694 already_processed = set()
7695 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='locationType')
7696 if self.hasContent_hasContent_():
7697 outfile.write('>%s' % (eol_, ))
7698 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='locationType', pretty_print=pretty_print)
7699 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
7700 else:
7701 outfile.write('/>%s' % (eol_, ))
7702 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='locationType'):
7703 if self.file is not None and 'file' not in already_processed:
7704 already_processed.add('file')
7705 outfile.write(' file=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.file), input_name='file')), ))
7706 if self.line is not None and 'line' not in already_processed:
7707 already_processed.add('line')
7708 outfile.write(' line="%s"' % self.gds_format_integergds_format_integer(self.line, input_name='line'))
7709 if self.column is not None and 'column' not in already_processed:
7710 already_processed.add('column')
7711 outfile.write(' column="%s"' % self.gds_format_integergds_format_integer(self.column, input_name='column'))
7712 if self.declfile is not None and 'declfile' not in already_processed:
7713 already_processed.add('declfile')
7714 outfile.write(' declfile=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.declfile), input_name='declfile')), ))
7715 if self.declline is not None and 'declline' not in already_processed:
7716 already_processed.add('declline')
7717 outfile.write(' declline="%s"' % self.gds_format_integergds_format_integer(self.declline, input_name='declline'))
7718 if self.declcolumn is not None and 'declcolumn' not in already_processed:
7719 already_processed.add('declcolumn')
7720 outfile.write(' declcolumn="%s"' % self.gds_format_integergds_format_integer(self.declcolumn, input_name='declcolumn'))
7721 if self.bodyfile is not None and 'bodyfile' not in already_processed:
7722 already_processed.add('bodyfile')
7723 outfile.write(' bodyfile=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.bodyfile), input_name='bodyfile')), ))
7724 if self.bodystart is not None and 'bodystart' not in already_processed:
7725 already_processed.add('bodystart')
7726 outfile.write(' bodystart="%s"' % self.gds_format_integergds_format_integer(self.bodystart, input_name='bodystart'))
7727 if self.bodyend is not None and 'bodyend' not in already_processed:
7728 already_processed.add('bodyend')
7729 outfile.write(' bodyend="%s"' % self.gds_format_integergds_format_integer(self.bodyend, input_name='bodyend'))
7730 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='locationType', fromsubclass_=False, pretty_print=True):
7731 pass
7732 def build(self, node, gds_collector_=None):
7733 self.gds_collector_ = gds_collector_
7734 if SaveElementTreeNode:
7735 self.gds_elementtree_node_ = node
7736 already_processed = set()
7737 self.ns_prefix_ = node.prefix
7738 self.buildAttributes(node, node.attrib, already_processed)
7739 for child in node:
7740 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
7741 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
7742 return self
7743 def buildAttributes(self, node, attrs, already_processed):
7744 value = find_attr_value_('file', node)
7745 if value is not None and 'file' not in already_processed:
7746 already_processed.add('file')
7747 self.file = value
7748 value = find_attr_value_('line', node)
7749 if value is not None and 'line' not in already_processed:
7750 already_processed.add('line')
7751 self.line = self.gds_parse_integergds_parse_integer(value, node, 'line')
7752 value = find_attr_value_('column', node)
7753 if value is not None and 'column' not in already_processed:
7754 already_processed.add('column')
7755 self.column = self.gds_parse_integergds_parse_integer(value, node, 'column')
7756 value = find_attr_value_('declfile', node)
7757 if value is not None and 'declfile' not in already_processed:
7758 already_processed.add('declfile')
7759 self.declfile = value
7760 value = find_attr_value_('declline', node)
7761 if value is not None and 'declline' not in already_processed:
7762 already_processed.add('declline')
7763 self.declline = self.gds_parse_integergds_parse_integer(value, node, 'declline')
7764 value = find_attr_value_('declcolumn', node)
7765 if value is not None and 'declcolumn' not in already_processed:
7766 already_processed.add('declcolumn')
7767 self.declcolumn = self.gds_parse_integergds_parse_integer(value, node, 'declcolumn')
7768 value = find_attr_value_('bodyfile', node)
7769 if value is not None and 'bodyfile' not in already_processed:
7770 already_processed.add('bodyfile')
7771 self.bodyfile = value
7772 value = find_attr_value_('bodystart', node)
7773 if value is not None and 'bodystart' not in already_processed:
7774 already_processed.add('bodystart')
7775 self.bodystart = self.gds_parse_integergds_parse_integer(value, node, 'bodystart')
7776 value = find_attr_value_('bodyend', node)
7777 if value is not None and 'bodyend' not in already_processed:
7778 already_processed.add('bodyend')
7779 self.bodyend = self.gds_parse_integergds_parse_integer(value, node, 'bodyend')
7780 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
7781 pass
7782# end class locationType
7783
7784
7785class docSect1Type(GeneratedsSuper):
7786 __hash__ = GeneratedsSuper.__hash__
7787 subclass = None
7788 superclass = None
7789 def __init__(self, id=None, title=None, para=None, internal=None, sect2=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
7790 self.gds_collector_ = gds_collector_
7791 self.gds_elementtree_node_ = None
7792 self.original_tagname_ = None
7793 self.parent_object_ = kwargs_.get('parent_object_')
7794 self.ns_prefix_ = None
7795 self.id = _cast(None, id)
7796 self.id_nsprefix_ = None
7797 self.title = title
7798 self.title_nsprefix_ = None
7799 if para is None:
7800 self.para = []
7801 else:
7802 self.para = para
7803 self.para_nsprefix_ = None
7804 if internal is None:
7805 self.internal = []
7806 else:
7807 self.internal = internal
7808 self.internal_nsprefix_ = None
7809 if sect2 is None:
7810 self.sect2 = []
7811 else:
7812 self.sect2 = sect2
7813 self.sect2_nsprefix_ = None
7814 self.valueOf_ = valueOf_
7815 if mixedclass_ is None:
7816 self.mixedclass_ = MixedContainer
7817 else:
7818 self.mixedclass_ = mixedclass_
7819 if content_ is None:
7820 self.content_ = []
7821 else:
7822 self.content_ = content_
7823 self.valueOf_ = valueOf_
7824 def factory(*args_, **kwargs_):
7825 if CurrentSubclassModule_ is not None:
7826 subclass = getSubclassFromModule_(
7827 CurrentSubclassModule_, docSect1Type)
7828 if subclass is not None:
7829 return subclass(*args_, **kwargs_)
7830 if docSect1Type.subclass:
7831 return docSect1Type.subclass(*args_, **kwargs_)
7832 else:
7833 return docSect1Type(*args_, **kwargs_)
7834 factory = staticmethod(factory)
7836 return self.ns_prefix_
7837 def set_ns_prefix_(self, ns_prefix):
7838 self.ns_prefix_ = ns_prefix
7839 def get_title(self):
7840 return self.title
7841 def set_title(self, title):
7842 self.title = title
7843 def get_para(self):
7844 return self.para
7845 def set_para(self, para):
7846 self.para = para
7847 def add_para(self, value):
7848 self.para.append(value)
7849 def insert_para_at(self, index, value):
7850 self.para.insert(index, value)
7851 def replace_para_at(self, index, value):
7852 self.para[index] = value
7853 def get_internal(self):
7854 return self.internal
7855 def set_internal(self, internal):
7856 self.internal = internal
7857 def add_internal(self, value):
7858 self.internal.append(value)
7859 def insert_internal_at(self, index, value):
7860 self.internal.insert(index, value)
7861 def replace_internal_at(self, index, value):
7862 self.internal[index] = value
7863 def get_sect2(self):
7864 return self.sect2
7865 def set_sect2(self, sect2):
7866 self.sect2 = sect2
7867 def add_sect2(self, value):
7868 self.sect2.append(value)
7869 def insert_sect2_at(self, index, value):
7870 self.sect2.insert(index, value)
7871 def replace_sect2_at(self, index, value):
7872 self.sect2[index] = value
7873 def get_id(self):
7874 return self.id
7875 def set_id(self, id):
7876 self.id = id
7877 def get_valueOf_(self): return self.valueOf_
7878 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
7879 def hasContent_(self):
7880 if (
7881 self.title is not None or
7882 self.para or
7883 self.internal or
7884 self.sect2 or
7885 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
7886 self.content_
7887 ):
7888 return True
7889 else:
7890 return False
7891 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect1Type', pretty_print=True):
7892 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docSect1Type')
7893 if imported_ns_def_ is not None:
7894 namespacedef_ = imported_ns_def_
7895 if pretty_print:
7896 eol_ = '\n'
7897 else:
7898 eol_ = ''
7899 if self.original_tagname_ is not None and name_ == 'docSect1Type':
7900 name_ = self.original_tagname_
7901 if UseCapturedNS_ and self.ns_prefix_:
7902 namespaceprefix_ = self.ns_prefix_ + ':'
7903 showIndent(outfile, level, pretty_print)
7904 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
7905 already_processed = set()
7906 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docSect1Type')
7907 if self.hasContent_hasContent_():
7908 outfile.write('>%s' % (eol_, ))
7909 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docSect1Type', pretty_print=pretty_print)
7910 showIndent(outfile, level, pretty_print)
7911 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
7912 else:
7913 outfile.write('/>%s' % (eol_, ))
7914 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect1Type'):
7915 if self.id is not None and 'id' not in already_processed:
7916 already_processed.add('id')
7917 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
7918 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect1Type', fromsubclass_=False, pretty_print=True):
7919 if not fromsubclass_:
7920 for item_ in self.content_:
7921 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
7922 if pretty_print:
7923 eol_ = '\n'
7924 else:
7925 eol_ = ''
7926 if self.title is not None:
7927 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
7928 showIndent(outfile, level, pretty_print)
7929 outfile.write('<%stitle>%s</%stitle>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.title), input_name='title')), namespaceprefix_ , eol_))
7930 for para_ in self.para:
7931 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
7932 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
7933 for internal_ in self.internal:
7934 namespaceprefix_ = self.internal_nsprefix_ + ':' if (UseCapturedNS_ and self.internal_nsprefix_) else ''
7935 internal_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='internal', pretty_print=pretty_print)
7936 for sect2_ in self.sect2:
7937 namespaceprefix_ = self.sect2_nsprefix_ + ':' if (UseCapturedNS_ and self.sect2_nsprefix_) else ''
7938 sect2_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect2', pretty_print=pretty_print)
7939 def build(self, node, gds_collector_=None):
7940 self.gds_collector_ = gds_collector_
7941 if SaveElementTreeNode:
7942 self.gds_elementtree_node_ = node
7943 already_processed = set()
7944 self.ns_prefix_ = node.prefix
7945 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
7946 self.valueOf_ = get_all_text_(node)
7947 if node.text is not None:
7948 obj_ = self.mixedclass_(MixedContainer.CategoryText,
7949 MixedContainer.TypeNone, '', node.text)
7950 self.content_.append(obj_)
7951 for child in node:
7952 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
7953 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
7954 return self
7955 def buildAttributes(self, node, attrs, already_processed):
7956 value = find_attr_value_('id', node)
7957 if value is not None and 'id' not in already_processed:
7958 already_processed.add('id')
7959 self.id = value
7960 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
7961 if nodeName_ == 'title' and child_.text is not None:
7962 valuestr_ = child_.text
7963 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'title')
7964 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'title')
7965 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
7966 MixedContainer.TypeString, 'title', valuestr_)
7967 self.content_.append(obj_)
7968 self.title_nsprefix_ = child_.prefix
7969 elif nodeName_ == 'para':
7970 obj_ = docParaType.factory(parent_object_=self)
7971 obj_.build(child_, gds_collector_=gds_collector_)
7972 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
7973 MixedContainer.TypeNone, 'para', obj_)
7974 self.content_.append(obj_)
7975 if hasattr(self, 'add_para'):
7976 self.add_paraadd_para(obj_.value)
7977 elif hasattr(self, 'set_para'):
7978 self.set_paraset_para(obj_.value)
7979 elif nodeName_ == 'internal':
7980 obj_ = docInternalS1Type.factory(parent_object_=self)
7981 obj_.build(child_, gds_collector_=gds_collector_)
7982 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
7983 MixedContainer.TypeNone, 'internal', obj_)
7984 self.content_.append(obj_)
7985 if hasattr(self, 'add_internal'):
7986 self.add_internaladd_internal(obj_.value)
7987 elif hasattr(self, 'set_internal'):
7988 self.set_internalset_internal(obj_.value)
7989 elif nodeName_ == 'sect2':
7990 obj_ = docSect2Type.factory(parent_object_=self)
7991 obj_.build(child_, gds_collector_=gds_collector_)
7992 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
7993 MixedContainer.TypeNone, 'sect2', obj_)
7994 self.content_.append(obj_)
7995 if hasattr(self, 'add_sect2'):
7996 self.add_sect2add_sect2(obj_.value)
7997 elif hasattr(self, 'set_sect2'):
7998 self.set_sect2set_sect2(obj_.value)
7999 if not fromsubclass_ and child_.tail is not None:
8000 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8001 MixedContainer.TypeNone, '', child_.tail)
8002 self.content_.append(obj_)
8003# end class docSect1Type
8004
8005
8007 __hash__ = GeneratedsSuper.__hash__
8008 subclass = None
8009 superclass = None
8010 def __init__(self, id=None, title=None, para=None, sect3=None, internal=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
8011 self.gds_collector_ = gds_collector_
8012 self.gds_elementtree_node_ = None
8013 self.original_tagname_ = None
8014 self.parent_object_ = kwargs_.get('parent_object_')
8015 self.ns_prefix_ = None
8016 self.id = _cast(None, id)
8017 self.id_nsprefix_ = None
8018 self.title = title
8019 self.title_nsprefix_ = None
8020 if para is None:
8021 self.para = []
8022 else:
8023 self.para = para
8024 self.para_nsprefix_ = None
8025 if sect3 is None:
8026 self.sect3 = []
8027 else:
8028 self.sect3 = sect3
8029 self.sect3_nsprefix_ = None
8030 if internal is None:
8031 self.internal = []
8032 else:
8033 self.internal = internal
8034 self.internal_nsprefix_ = None
8035 self.valueOf_ = valueOf_
8036 if mixedclass_ is None:
8037 self.mixedclass_ = MixedContainer
8038 else:
8039 self.mixedclass_ = mixedclass_
8040 if content_ is None:
8041 self.content_ = []
8042 else:
8043 self.content_ = content_
8044 self.valueOf_ = valueOf_
8045 def factory(*args_, **kwargs_):
8046 if CurrentSubclassModule_ is not None:
8047 subclass = getSubclassFromModule_(
8048 CurrentSubclassModule_, docSect2Type)
8049 if subclass is not None:
8050 return subclass(*args_, **kwargs_)
8051 if docSect2Type.subclass:
8052 return docSect2Type.subclass(*args_, **kwargs_)
8053 else:
8054 return docSect2Type(*args_, **kwargs_)
8055 factory = staticmethod(factory)
8057 return self.ns_prefix_
8058 def set_ns_prefix_(self, ns_prefix):
8059 self.ns_prefix_ = ns_prefix
8060 def get_title(self):
8061 return self.title
8062 def set_title(self, title):
8063 self.title = title
8064 def get_para(self):
8065 return self.para
8066 def set_para(self, para):
8067 self.para = para
8068 def add_para(self, value):
8069 self.para.append(value)
8070 def insert_para_at(self, index, value):
8071 self.para.insert(index, value)
8072 def replace_para_at(self, index, value):
8073 self.para[index] = value
8074 def get_sect3(self):
8075 return self.sect3
8076 def set_sect3(self, sect3):
8077 self.sect3 = sect3
8078 def add_sect3(self, value):
8079 self.sect3.append(value)
8080 def insert_sect3_at(self, index, value):
8081 self.sect3.insert(index, value)
8082 def replace_sect3_at(self, index, value):
8083 self.sect3[index] = value
8084 def get_internal(self):
8085 return self.internal
8086 def set_internal(self, internal):
8087 self.internal = internal
8088 def add_internal(self, value):
8089 self.internal.append(value)
8090 def insert_internal_at(self, index, value):
8091 self.internal.insert(index, value)
8092 def replace_internal_at(self, index, value):
8093 self.internal[index] = value
8094 def get_id(self):
8095 return self.id
8096 def set_id(self, id):
8097 self.id = id
8098 def get_valueOf_(self): return self.valueOf_
8099 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
8100 def hasContent_(self):
8101 if (
8102 self.title is not None or
8103 self.para or
8104 self.sect3 or
8105 self.internal or
8106 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
8107 self.content_
8108 ):
8109 return True
8110 else:
8111 return False
8112 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect2Type', pretty_print=True):
8113 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docSect2Type')
8114 if imported_ns_def_ is not None:
8115 namespacedef_ = imported_ns_def_
8116 if pretty_print:
8117 eol_ = '\n'
8118 else:
8119 eol_ = ''
8120 if self.original_tagname_ is not None and name_ == 'docSect2Type':
8121 name_ = self.original_tagname_
8122 if UseCapturedNS_ and self.ns_prefix_:
8123 namespaceprefix_ = self.ns_prefix_ + ':'
8124 showIndent(outfile, level, pretty_print)
8125 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
8126 already_processed = set()
8127 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docSect2Type')
8128 if self.hasContent_hasContent_():
8129 outfile.write('>%s' % (eol_, ))
8130 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docSect2Type', pretty_print=pretty_print)
8131 showIndent(outfile, level, pretty_print)
8132 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
8133 else:
8134 outfile.write('/>%s' % (eol_, ))
8135 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect2Type'):
8136 if self.id is not None and 'id' not in already_processed:
8137 already_processed.add('id')
8138 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
8139 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect2Type', fromsubclass_=False, pretty_print=True):
8140 if not fromsubclass_:
8141 for item_ in self.content_:
8142 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
8143 if pretty_print:
8144 eol_ = '\n'
8145 else:
8146 eol_ = ''
8147 if self.title is not None:
8148 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
8149 showIndent(outfile, level, pretty_print)
8150 outfile.write('<%stitle>%s</%stitle>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.title), input_name='title')), namespaceprefix_ , eol_))
8151 for para_ in self.para:
8152 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
8153 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
8154 for sect3_ in self.sect3:
8155 namespaceprefix_ = self.sect3_nsprefix_ + ':' if (UseCapturedNS_ and self.sect3_nsprefix_) else ''
8156 sect3_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect3', pretty_print=pretty_print)
8157 for internal_ in self.internal:
8158 namespaceprefix_ = self.internal_nsprefix_ + ':' if (UseCapturedNS_ and self.internal_nsprefix_) else ''
8159 internal_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='internal', pretty_print=pretty_print)
8160 def build(self, node, gds_collector_=None):
8161 self.gds_collector_ = gds_collector_
8162 if SaveElementTreeNode:
8163 self.gds_elementtree_node_ = node
8164 already_processed = set()
8165 self.ns_prefix_ = node.prefix
8166 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
8167 self.valueOf_ = get_all_text_(node)
8168 if node.text is not None:
8169 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8170 MixedContainer.TypeNone, '', node.text)
8171 self.content_.append(obj_)
8172 for child in node:
8173 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
8174 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
8175 return self
8176 def buildAttributes(self, node, attrs, already_processed):
8177 value = find_attr_value_('id', node)
8178 if value is not None and 'id' not in already_processed:
8179 already_processed.add('id')
8180 self.id = value
8181 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
8182 if nodeName_ == 'title' and child_.text is not None:
8183 valuestr_ = child_.text
8184 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'title')
8185 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'title')
8186 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
8187 MixedContainer.TypeString, 'title', valuestr_)
8188 self.content_.append(obj_)
8189 self.title_nsprefix_ = child_.prefix
8190 elif nodeName_ == 'para':
8191 obj_ = docParaType.factory(parent_object_=self)
8192 obj_.build(child_, gds_collector_=gds_collector_)
8193 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8194 MixedContainer.TypeNone, 'para', obj_)
8195 self.content_.append(obj_)
8196 if hasattr(self, 'add_para'):
8197 self.add_paraadd_para(obj_.value)
8198 elif hasattr(self, 'set_para'):
8199 self.set_paraset_para(obj_.value)
8200 elif nodeName_ == 'sect3':
8201 obj_ = docSect3Type.factory(parent_object_=self)
8202 obj_.build(child_, gds_collector_=gds_collector_)
8203 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8204 MixedContainer.TypeNone, 'sect3', obj_)
8205 self.content_.append(obj_)
8206 if hasattr(self, 'add_sect3'):
8207 self.add_sect3add_sect3(obj_.value)
8208 elif hasattr(self, 'set_sect3'):
8209 self.set_sect3set_sect3(obj_.value)
8210 elif nodeName_ == 'internal':
8211 obj_ = docInternalS2Type.factory(parent_object_=self)
8212 obj_.build(child_, gds_collector_=gds_collector_)
8213 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8214 MixedContainer.TypeNone, 'internal', obj_)
8215 self.content_.append(obj_)
8216 if hasattr(self, 'add_internal'):
8217 self.add_internaladd_internal(obj_.value)
8218 elif hasattr(self, 'set_internal'):
8219 self.set_internalset_internal(obj_.value)
8220 if not fromsubclass_ and child_.tail is not None:
8221 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8222 MixedContainer.TypeNone, '', child_.tail)
8223 self.content_.append(obj_)
8224# end class docSect2Type
8225
8226
8228 __hash__ = GeneratedsSuper.__hash__
8229 subclass = None
8230 superclass = None
8231 def __init__(self, id=None, title=None, para=None, sect4=None, internal=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
8232 self.gds_collector_ = gds_collector_
8233 self.gds_elementtree_node_ = None
8234 self.original_tagname_ = None
8235 self.parent_object_ = kwargs_.get('parent_object_')
8236 self.ns_prefix_ = None
8237 self.id = _cast(None, id)
8238 self.id_nsprefix_ = None
8239 self.title = title
8240 self.title_nsprefix_ = None
8241 if para is None:
8242 self.para = []
8243 else:
8244 self.para = para
8245 self.para_nsprefix_ = None
8246 if sect4 is None:
8247 self.sect4 = []
8248 else:
8249 self.sect4 = sect4
8250 self.sect4_nsprefix_ = None
8251 if internal is None:
8252 self.internal = []
8253 else:
8254 self.internal = internal
8255 self.internal_nsprefix_ = None
8256 self.valueOf_ = valueOf_
8257 if mixedclass_ is None:
8258 self.mixedclass_ = MixedContainer
8259 else:
8260 self.mixedclass_ = mixedclass_
8261 if content_ is None:
8262 self.content_ = []
8263 else:
8264 self.content_ = content_
8265 self.valueOf_ = valueOf_
8266 def factory(*args_, **kwargs_):
8267 if CurrentSubclassModule_ is not None:
8268 subclass = getSubclassFromModule_(
8269 CurrentSubclassModule_, docSect3Type)
8270 if subclass is not None:
8271 return subclass(*args_, **kwargs_)
8272 if docSect3Type.subclass:
8273 return docSect3Type.subclass(*args_, **kwargs_)
8274 else:
8275 return docSect3Type(*args_, **kwargs_)
8276 factory = staticmethod(factory)
8278 return self.ns_prefix_
8279 def set_ns_prefix_(self, ns_prefix):
8280 self.ns_prefix_ = ns_prefix
8281 def get_title(self):
8282 return self.title
8283 def set_title(self, title):
8284 self.title = title
8285 def get_para(self):
8286 return self.para
8287 def set_para(self, para):
8288 self.para = para
8289 def add_para(self, value):
8290 self.para.append(value)
8291 def insert_para_at(self, index, value):
8292 self.para.insert(index, value)
8293 def replace_para_at(self, index, value):
8294 self.para[index] = value
8295 def get_sect4(self):
8296 return self.sect4
8297 def set_sect4(self, sect4):
8298 self.sect4 = sect4
8299 def add_sect4(self, value):
8300 self.sect4.append(value)
8301 def insert_sect4_at(self, index, value):
8302 self.sect4.insert(index, value)
8303 def replace_sect4_at(self, index, value):
8304 self.sect4[index] = value
8305 def get_internal(self):
8306 return self.internal
8307 def set_internal(self, internal):
8308 self.internal = internal
8309 def add_internal(self, value):
8310 self.internal.append(value)
8311 def insert_internal_at(self, index, value):
8312 self.internal.insert(index, value)
8313 def replace_internal_at(self, index, value):
8314 self.internal[index] = value
8315 def get_id(self):
8316 return self.id
8317 def set_id(self, id):
8318 self.id = id
8319 def get_valueOf_(self): return self.valueOf_
8320 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
8321 def hasContent_(self):
8322 if (
8323 self.title is not None or
8324 self.para or
8325 self.sect4 or
8326 self.internal or
8327 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
8328 self.content_
8329 ):
8330 return True
8331 else:
8332 return False
8333 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect3Type', pretty_print=True):
8334 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docSect3Type')
8335 if imported_ns_def_ is not None:
8336 namespacedef_ = imported_ns_def_
8337 if pretty_print:
8338 eol_ = '\n'
8339 else:
8340 eol_ = ''
8341 if self.original_tagname_ is not None and name_ == 'docSect3Type':
8342 name_ = self.original_tagname_
8343 if UseCapturedNS_ and self.ns_prefix_:
8344 namespaceprefix_ = self.ns_prefix_ + ':'
8345 showIndent(outfile, level, pretty_print)
8346 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
8347 already_processed = set()
8348 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docSect3Type')
8349 if self.hasContent_hasContent_():
8350 outfile.write('>%s' % (eol_, ))
8351 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docSect3Type', pretty_print=pretty_print)
8352 showIndent(outfile, level, pretty_print)
8353 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
8354 else:
8355 outfile.write('/>%s' % (eol_, ))
8356 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect3Type'):
8357 if self.id is not None and 'id' not in already_processed:
8358 already_processed.add('id')
8359 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
8360 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect3Type', fromsubclass_=False, pretty_print=True):
8361 if not fromsubclass_:
8362 for item_ in self.content_:
8363 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
8364 if pretty_print:
8365 eol_ = '\n'
8366 else:
8367 eol_ = ''
8368 if self.title is not None:
8369 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
8370 showIndent(outfile, level, pretty_print)
8371 outfile.write('<%stitle>%s</%stitle>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.title), input_name='title')), namespaceprefix_ , eol_))
8372 for para_ in self.para:
8373 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
8374 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
8375 for sect4_ in self.sect4:
8376 namespaceprefix_ = self.sect4_nsprefix_ + ':' if (UseCapturedNS_ and self.sect4_nsprefix_) else ''
8377 sect4_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect4', pretty_print=pretty_print)
8378 for internal_ in self.internal:
8379 namespaceprefix_ = self.internal_nsprefix_ + ':' if (UseCapturedNS_ and self.internal_nsprefix_) else ''
8380 internal_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='internal', pretty_print=pretty_print)
8381 def build(self, node, gds_collector_=None):
8382 self.gds_collector_ = gds_collector_
8383 if SaveElementTreeNode:
8384 self.gds_elementtree_node_ = node
8385 already_processed = set()
8386 self.ns_prefix_ = node.prefix
8387 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
8388 self.valueOf_ = get_all_text_(node)
8389 if node.text is not None:
8390 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8391 MixedContainer.TypeNone, '', node.text)
8392 self.content_.append(obj_)
8393 for child in node:
8394 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
8395 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
8396 return self
8397 def buildAttributes(self, node, attrs, already_processed):
8398 value = find_attr_value_('id', node)
8399 if value is not None and 'id' not in already_processed:
8400 already_processed.add('id')
8401 self.id = value
8402 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
8403 if nodeName_ == 'title' and child_.text is not None:
8404 valuestr_ = child_.text
8405 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'title')
8406 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'title')
8407 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
8408 MixedContainer.TypeString, 'title', valuestr_)
8409 self.content_.append(obj_)
8410 self.title_nsprefix_ = child_.prefix
8411 elif nodeName_ == 'para':
8412 obj_ = docParaType.factory(parent_object_=self)
8413 obj_.build(child_, gds_collector_=gds_collector_)
8414 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8415 MixedContainer.TypeNone, 'para', obj_)
8416 self.content_.append(obj_)
8417 if hasattr(self, 'add_para'):
8418 self.add_paraadd_para(obj_.value)
8419 elif hasattr(self, 'set_para'):
8420 self.set_paraset_para(obj_.value)
8421 elif nodeName_ == 'sect4':
8422 obj_ = docSect4Type.factory(parent_object_=self)
8423 obj_.build(child_, gds_collector_=gds_collector_)
8424 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8425 MixedContainer.TypeNone, 'sect4', obj_)
8426 self.content_.append(obj_)
8427 if hasattr(self, 'add_sect4'):
8428 self.add_sect4add_sect4(obj_.value)
8429 elif hasattr(self, 'set_sect4'):
8430 self.set_sect4set_sect4(obj_.value)
8431 elif nodeName_ == 'internal':
8432 obj_ = docInternalS3Type.factory(parent_object_=self)
8433 obj_.build(child_, gds_collector_=gds_collector_)
8434 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8435 MixedContainer.TypeNone, 'internal', obj_)
8436 self.content_.append(obj_)
8437 if hasattr(self, 'add_internal'):
8438 self.add_internaladd_internal(obj_.value)
8439 elif hasattr(self, 'set_internal'):
8440 self.set_internalset_internal(obj_.value)
8441 if not fromsubclass_ and child_.tail is not None:
8442 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8443 MixedContainer.TypeNone, '', child_.tail)
8444 self.content_.append(obj_)
8445# end class docSect3Type
8446
8447
8449 __hash__ = GeneratedsSuper.__hash__
8450 subclass = None
8451 superclass = None
8452 def __init__(self, id=None, title=None, para=None, internal=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
8453 self.gds_collector_ = gds_collector_
8454 self.gds_elementtree_node_ = None
8455 self.original_tagname_ = None
8456 self.parent_object_ = kwargs_.get('parent_object_')
8457 self.ns_prefix_ = None
8458 self.id = _cast(None, id)
8459 self.id_nsprefix_ = None
8460 self.title = title
8461 self.title_nsprefix_ = None
8462 if para is None:
8463 self.para = []
8464 else:
8465 self.para = para
8466 self.para_nsprefix_ = None
8467 if internal is None:
8468 self.internal = []
8469 else:
8470 self.internal = internal
8471 self.internal_nsprefix_ = None
8472 self.valueOf_ = valueOf_
8473 if mixedclass_ is None:
8474 self.mixedclass_ = MixedContainer
8475 else:
8476 self.mixedclass_ = mixedclass_
8477 if content_ is None:
8478 self.content_ = []
8479 else:
8480 self.content_ = content_
8481 self.valueOf_ = valueOf_
8482 def factory(*args_, **kwargs_):
8483 if CurrentSubclassModule_ is not None:
8484 subclass = getSubclassFromModule_(
8485 CurrentSubclassModule_, docSect4Type)
8486 if subclass is not None:
8487 return subclass(*args_, **kwargs_)
8488 if docSect4Type.subclass:
8489 return docSect4Type.subclass(*args_, **kwargs_)
8490 else:
8491 return docSect4Type(*args_, **kwargs_)
8492 factory = staticmethod(factory)
8494 return self.ns_prefix_
8495 def set_ns_prefix_(self, ns_prefix):
8496 self.ns_prefix_ = ns_prefix
8497 def get_title(self):
8498 return self.title
8499 def set_title(self, title):
8500 self.title = title
8501 def get_para(self):
8502 return self.para
8503 def set_para(self, para):
8504 self.para = para
8505 def add_para(self, value):
8506 self.para.append(value)
8507 def insert_para_at(self, index, value):
8508 self.para.insert(index, value)
8509 def replace_para_at(self, index, value):
8510 self.para[index] = value
8511 def get_internal(self):
8512 return self.internal
8513 def set_internal(self, internal):
8514 self.internal = internal
8515 def add_internal(self, value):
8516 self.internal.append(value)
8517 def insert_internal_at(self, index, value):
8518 self.internal.insert(index, value)
8519 def replace_internal_at(self, index, value):
8520 self.internal[index] = value
8521 def get_id(self):
8522 return self.id
8523 def set_id(self, id):
8524 self.id = id
8525 def get_valueOf_(self): return self.valueOf_
8526 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
8527 def hasContent_(self):
8528 if (
8529 self.title is not None or
8530 self.para or
8531 self.internal or
8532 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
8533 self.content_
8534 ):
8535 return True
8536 else:
8537 return False
8538 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect4Type', pretty_print=True):
8539 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docSect4Type')
8540 if imported_ns_def_ is not None:
8541 namespacedef_ = imported_ns_def_
8542 if pretty_print:
8543 eol_ = '\n'
8544 else:
8545 eol_ = ''
8546 if self.original_tagname_ is not None and name_ == 'docSect4Type':
8547 name_ = self.original_tagname_
8548 if UseCapturedNS_ and self.ns_prefix_:
8549 namespaceprefix_ = self.ns_prefix_ + ':'
8550 showIndent(outfile, level, pretty_print)
8551 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
8552 already_processed = set()
8553 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docSect4Type')
8554 if self.hasContent_hasContent_():
8555 outfile.write('>%s' % (eol_, ))
8556 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docSect4Type', pretty_print=pretty_print)
8557 showIndent(outfile, level, pretty_print)
8558 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
8559 else:
8560 outfile.write('/>%s' % (eol_, ))
8561 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect4Type'):
8562 if self.id is not None and 'id' not in already_processed:
8563 already_processed.add('id')
8564 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
8565 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect4Type', fromsubclass_=False, pretty_print=True):
8566 if not fromsubclass_:
8567 for item_ in self.content_:
8568 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
8569 if pretty_print:
8570 eol_ = '\n'
8571 else:
8572 eol_ = ''
8573 if self.title is not None:
8574 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
8575 showIndent(outfile, level, pretty_print)
8576 outfile.write('<%stitle>%s</%stitle>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(self.title), input_name='title')), namespaceprefix_ , eol_))
8577 for para_ in self.para:
8578 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
8579 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
8580 for internal_ in self.internal:
8581 namespaceprefix_ = self.internal_nsprefix_ + ':' if (UseCapturedNS_ and self.internal_nsprefix_) else ''
8582 internal_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='internal', pretty_print=pretty_print)
8583 def build(self, node, gds_collector_=None):
8584 self.gds_collector_ = gds_collector_
8585 if SaveElementTreeNode:
8586 self.gds_elementtree_node_ = node
8587 already_processed = set()
8588 self.ns_prefix_ = node.prefix
8589 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
8590 self.valueOf_ = get_all_text_(node)
8591 if node.text is not None:
8592 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8593 MixedContainer.TypeNone, '', node.text)
8594 self.content_.append(obj_)
8595 for child in node:
8596 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
8597 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
8598 return self
8599 def buildAttributes(self, node, attrs, already_processed):
8600 value = find_attr_value_('id', node)
8601 if value is not None and 'id' not in already_processed:
8602 already_processed.add('id')
8603 self.id = value
8604 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
8605 if nodeName_ == 'title' and child_.text is not None:
8606 valuestr_ = child_.text
8607 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'title')
8608 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'title')
8609 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
8610 MixedContainer.TypeString, 'title', valuestr_)
8611 self.content_.append(obj_)
8612 self.title_nsprefix_ = child_.prefix
8613 elif nodeName_ == 'para':
8614 obj_ = docParaType.factory(parent_object_=self)
8615 obj_.build(child_, gds_collector_=gds_collector_)
8616 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8617 MixedContainer.TypeNone, 'para', obj_)
8618 self.content_.append(obj_)
8619 if hasattr(self, 'add_para'):
8620 self.add_paraadd_para(obj_.value)
8621 elif hasattr(self, 'set_para'):
8622 self.set_paraset_para(obj_.value)
8623 elif nodeName_ == 'internal':
8624 obj_ = docInternalS4Type.factory(parent_object_=self)
8625 obj_.build(child_, gds_collector_=gds_collector_)
8626 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8627 MixedContainer.TypeNone, 'internal', obj_)
8628 self.content_.append(obj_)
8629 if hasattr(self, 'add_internal'):
8630 self.add_internaladd_internal(obj_.value)
8631 elif hasattr(self, 'set_internal'):
8632 self.set_internalset_internal(obj_.value)
8633 if not fromsubclass_ and child_.tail is not None:
8634 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8635 MixedContainer.TypeNone, '', child_.tail)
8636 self.content_.append(obj_)
8637# end class docSect4Type
8638
8639
8641 __hash__ = GeneratedsSuper.__hash__
8642 subclass = None
8643 superclass = None
8644 def __init__(self, para=None, sect1=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
8645 self.gds_collector_ = gds_collector_
8646 self.gds_elementtree_node_ = None
8647 self.original_tagname_ = None
8648 self.parent_object_ = kwargs_.get('parent_object_')
8649 self.ns_prefix_ = None
8650 if para is None:
8651 self.para = []
8652 else:
8653 self.para = para
8654 self.para_nsprefix_ = None
8655 if sect1 is None:
8656 self.sect1 = []
8657 else:
8658 self.sect1 = sect1
8659 self.sect1_nsprefix_ = None
8660 self.valueOf_ = valueOf_
8661 if mixedclass_ is None:
8662 self.mixedclass_ = MixedContainer
8663 else:
8664 self.mixedclass_ = mixedclass_
8665 if content_ is None:
8666 self.content_ = []
8667 else:
8668 self.content_ = content_
8669 self.valueOf_ = valueOf_
8670 def factory(*args_, **kwargs_):
8671 if CurrentSubclassModule_ is not None:
8672 subclass = getSubclassFromModule_(
8673 CurrentSubclassModule_, docInternalType)
8674 if subclass is not None:
8675 return subclass(*args_, **kwargs_)
8676 if docInternalType.subclass:
8677 return docInternalType.subclass(*args_, **kwargs_)
8678 else:
8679 return docInternalType(*args_, **kwargs_)
8680 factory = staticmethod(factory)
8682 return self.ns_prefix_
8683 def set_ns_prefix_(self, ns_prefix):
8684 self.ns_prefix_ = ns_prefix
8685 def get_para(self):
8686 return self.para
8687 def set_para(self, para):
8688 self.para = para
8689 def add_para(self, value):
8690 self.para.append(value)
8691 def insert_para_at(self, index, value):
8692 self.para.insert(index, value)
8693 def replace_para_at(self, index, value):
8694 self.para[index] = value
8695 def get_sect1(self):
8696 return self.sect1
8697 def set_sect1(self, sect1):
8698 self.sect1 = sect1
8699 def add_sect1(self, value):
8700 self.sect1.append(value)
8701 def insert_sect1_at(self, index, value):
8702 self.sect1.insert(index, value)
8703 def replace_sect1_at(self, index, value):
8704 self.sect1[index] = value
8705 def get_valueOf_(self): return self.valueOf_
8706 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
8707 def hasContent_(self):
8708 if (
8709 self.para or
8710 self.sect1 or
8711 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
8712 self.content_
8713 ):
8714 return True
8715 else:
8716 return False
8717 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalType', pretty_print=True):
8718 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docInternalType')
8719 if imported_ns_def_ is not None:
8720 namespacedef_ = imported_ns_def_
8721 if pretty_print:
8722 eol_ = '\n'
8723 else:
8724 eol_ = ''
8725 if self.original_tagname_ is not None and name_ == 'docInternalType':
8726 name_ = self.original_tagname_
8727 if UseCapturedNS_ and self.ns_prefix_:
8728 namespaceprefix_ = self.ns_prefix_ + ':'
8729 showIndent(outfile, level, pretty_print)
8730 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
8731 already_processed = set()
8732 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docInternalType')
8733 if self.hasContent_hasContent_():
8734 outfile.write('>%s' % (eol_, ))
8735 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docInternalType', pretty_print=pretty_print)
8736 showIndent(outfile, level, pretty_print)
8737 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
8738 else:
8739 outfile.write('/>%s' % (eol_, ))
8740 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalType'):
8741 pass
8742 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalType', fromsubclass_=False, pretty_print=True):
8743 if not fromsubclass_:
8744 for item_ in self.content_:
8745 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
8746 if pretty_print:
8747 eol_ = '\n'
8748 else:
8749 eol_ = ''
8750 for para_ in self.para:
8751 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
8752 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
8753 for sect1_ in self.sect1:
8754 namespaceprefix_ = self.sect1_nsprefix_ + ':' if (UseCapturedNS_ and self.sect1_nsprefix_) else ''
8755 sect1_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect1', pretty_print=pretty_print)
8756 def build(self, node, gds_collector_=None):
8757 self.gds_collector_ = gds_collector_
8758 if SaveElementTreeNode:
8759 self.gds_elementtree_node_ = node
8760 already_processed = set()
8761 self.ns_prefix_ = node.prefix
8762 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
8763 self.valueOf_ = get_all_text_(node)
8764 if node.text is not None:
8765 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8766 MixedContainer.TypeNone, '', node.text)
8767 self.content_.append(obj_)
8768 for child in node:
8769 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
8770 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
8771 return self
8772 def buildAttributes(self, node, attrs, already_processed):
8773 pass
8774 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
8775 if nodeName_ == 'para':
8776 obj_ = docParaType.factory(parent_object_=self)
8777 obj_.build(child_, gds_collector_=gds_collector_)
8778 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8779 MixedContainer.TypeNone, 'para', obj_)
8780 self.content_.append(obj_)
8781 if hasattr(self, 'add_para'):
8782 self.add_para(obj_.value)
8783 elif hasattr(self, 'set_para'):
8784 self.set_para(obj_.value)
8785 elif nodeName_ == 'sect1':
8786 obj_ = docSect1Type.factory(parent_object_=self)
8787 obj_.build(child_, gds_collector_=gds_collector_)
8788 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8789 MixedContainer.TypeNone, 'sect1', obj_)
8790 self.content_.append(obj_)
8791 if hasattr(self, 'add_sect1'):
8792 self.add_sect1(obj_.value)
8793 elif hasattr(self, 'set_sect1'):
8794 self.set_sect1(obj_.value)
8795 if not fromsubclass_ and child_.tail is not None:
8796 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8797 MixedContainer.TypeNone, '', child_.tail)
8798 self.content_.append(obj_)
8799# end class docInternalType
8800
8801
8802class docInternalS1Type(GeneratedsSuper):
8803 __hash__ = GeneratedsSuper.__hash__
8804 subclass = None
8805 superclass = None
8806 def __init__(self, para=None, sect2=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
8807 self.gds_collector_ = gds_collector_
8808 self.gds_elementtree_node_ = None
8809 self.original_tagname_ = None
8810 self.parent_object_ = kwargs_.get('parent_object_')
8811 self.ns_prefix_ = None
8812 if para is None:
8813 self.para = []
8814 else:
8815 self.para = para
8816 self.para_nsprefix_ = None
8817 if sect2 is None:
8818 self.sect2 = []
8819 else:
8820 self.sect2 = sect2
8821 self.sect2_nsprefix_ = None
8822 self.valueOf_ = valueOf_
8823 if mixedclass_ is None:
8824 self.mixedclass_ = MixedContainer
8825 else:
8826 self.mixedclass_ = mixedclass_
8827 if content_ is None:
8828 self.content_ = []
8829 else:
8830 self.content_ = content_
8831 self.valueOf_ = valueOf_
8832 def factory(*args_, **kwargs_):
8833 if CurrentSubclassModule_ is not None:
8834 subclass = getSubclassFromModule_(
8835 CurrentSubclassModule_, docInternalS1Type)
8836 if subclass is not None:
8837 return subclass(*args_, **kwargs_)
8838 if docInternalS1Type.subclass:
8839 return docInternalS1Type.subclass(*args_, **kwargs_)
8840 else:
8841 return docInternalS1Type(*args_, **kwargs_)
8842 factory = staticmethod(factory)
8844 return self.ns_prefix_
8845 def set_ns_prefix_(self, ns_prefix):
8846 self.ns_prefix_ = ns_prefix
8847 def get_para(self):
8848 return self.para
8849 def set_para(self, para):
8850 self.para = para
8851 def add_para(self, value):
8852 self.para.append(value)
8853 def insert_para_at(self, index, value):
8854 self.para.insert(index, value)
8855 def replace_para_at(self, index, value):
8856 self.para[index] = value
8857 def get_sect2(self):
8858 return self.sect2
8859 def set_sect2(self, sect2):
8860 self.sect2 = sect2
8861 def add_sect2(self, value):
8862 self.sect2.append(value)
8863 def insert_sect2_at(self, index, value):
8864 self.sect2.insert(index, value)
8865 def replace_sect2_at(self, index, value):
8866 self.sect2[index] = value
8867 def get_valueOf_(self): return self.valueOf_
8868 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
8869 def hasContent_(self):
8870 if (
8871 self.para or
8872 self.sect2 or
8873 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
8874 self.content_
8875 ):
8876 return True
8877 else:
8878 return False
8879 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS1Type', pretty_print=True):
8880 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docInternalS1Type')
8881 if imported_ns_def_ is not None:
8882 namespacedef_ = imported_ns_def_
8883 if pretty_print:
8884 eol_ = '\n'
8885 else:
8886 eol_ = ''
8887 if self.original_tagname_ is not None and name_ == 'docInternalS1Type':
8888 name_ = self.original_tagname_
8889 if UseCapturedNS_ and self.ns_prefix_:
8890 namespaceprefix_ = self.ns_prefix_ + ':'
8891 showIndent(outfile, level, pretty_print)
8892 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
8893 already_processed = set()
8894 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docInternalS1Type')
8895 if self.hasContent_hasContent_():
8896 outfile.write('>%s' % (eol_, ))
8897 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docInternalS1Type', pretty_print=pretty_print)
8898 showIndent(outfile, level, pretty_print)
8899 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
8900 else:
8901 outfile.write('/>%s' % (eol_, ))
8902 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS1Type'):
8903 pass
8904 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS1Type', fromsubclass_=False, pretty_print=True):
8905 if not fromsubclass_:
8906 for item_ in self.content_:
8907 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
8908 if pretty_print:
8909 eol_ = '\n'
8910 else:
8911 eol_ = ''
8912 for para_ in self.para:
8913 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
8914 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
8915 for sect2_ in self.sect2:
8916 namespaceprefix_ = self.sect2_nsprefix_ + ':' if (UseCapturedNS_ and self.sect2_nsprefix_) else ''
8917 sect2_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect2', pretty_print=pretty_print)
8918 def build(self, node, gds_collector_=None):
8919 self.gds_collector_ = gds_collector_
8920 if SaveElementTreeNode:
8921 self.gds_elementtree_node_ = node
8922 already_processed = set()
8923 self.ns_prefix_ = node.prefix
8924 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
8925 self.valueOf_ = get_all_text_(node)
8926 if node.text is not None:
8927 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8928 MixedContainer.TypeNone, '', node.text)
8929 self.content_.append(obj_)
8930 for child in node:
8931 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
8932 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
8933 return self
8934 def buildAttributes(self, node, attrs, already_processed):
8935 pass
8936 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
8937 if nodeName_ == 'para':
8938 obj_ = docParaType.factory(parent_object_=self)
8939 obj_.build(child_, gds_collector_=gds_collector_)
8940 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8941 MixedContainer.TypeNone, 'para', obj_)
8942 self.content_.append(obj_)
8943 if hasattr(self, 'add_para'):
8944 self.add_para(obj_.value)
8945 elif hasattr(self, 'set_para'):
8946 self.set_para(obj_.value)
8947 elif nodeName_ == 'sect2':
8948 obj_ = docSect2Type.factory(parent_object_=self)
8949 obj_.build(child_, gds_collector_=gds_collector_)
8950 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
8951 MixedContainer.TypeNone, 'sect2', obj_)
8952 self.content_.append(obj_)
8953 if hasattr(self, 'add_sect2'):
8954 self.add_sect2(obj_.value)
8955 elif hasattr(self, 'set_sect2'):
8956 self.set_sect2(obj_.value)
8957 if not fromsubclass_ and child_.tail is not None:
8958 obj_ = self.mixedclass_(MixedContainer.CategoryText,
8959 MixedContainer.TypeNone, '', child_.tail)
8960 self.content_.append(obj_)
8961# end class docInternalS1Type
8962
8963
8964class docInternalS2Type(GeneratedsSuper):
8965 __hash__ = GeneratedsSuper.__hash__
8966 subclass = None
8967 superclass = None
8968 def __init__(self, para=None, sect3=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
8969 self.gds_collector_ = gds_collector_
8970 self.gds_elementtree_node_ = None
8971 self.original_tagname_ = None
8972 self.parent_object_ = kwargs_.get('parent_object_')
8973 self.ns_prefix_ = None
8974 if para is None:
8975 self.para = []
8976 else:
8977 self.para = para
8978 self.para_nsprefix_ = None
8979 if sect3 is None:
8980 self.sect3 = []
8981 else:
8982 self.sect3 = sect3
8983 self.sect3_nsprefix_ = None
8984 self.valueOf_ = valueOf_
8985 if mixedclass_ is None:
8986 self.mixedclass_ = MixedContainer
8987 else:
8988 self.mixedclass_ = mixedclass_
8989 if content_ is None:
8990 self.content_ = []
8991 else:
8992 self.content_ = content_
8993 self.valueOf_ = valueOf_
8994 def factory(*args_, **kwargs_):
8995 if CurrentSubclassModule_ is not None:
8996 subclass = getSubclassFromModule_(
8997 CurrentSubclassModule_, docInternalS2Type)
8998 if subclass is not None:
8999 return subclass(*args_, **kwargs_)
9000 if docInternalS2Type.subclass:
9001 return docInternalS2Type.subclass(*args_, **kwargs_)
9002 else:
9003 return docInternalS2Type(*args_, **kwargs_)
9004 factory = staticmethod(factory)
9006 return self.ns_prefix_
9007 def set_ns_prefix_(self, ns_prefix):
9008 self.ns_prefix_ = ns_prefix
9009 def get_para(self):
9010 return self.para
9011 def set_para(self, para):
9012 self.para = para
9013 def add_para(self, value):
9014 self.para.append(value)
9015 def insert_para_at(self, index, value):
9016 self.para.insert(index, value)
9017 def replace_para_at(self, index, value):
9018 self.para[index] = value
9019 def get_sect3(self):
9020 return self.sect3
9021 def set_sect3(self, sect3):
9022 self.sect3 = sect3
9023 def add_sect3(self, value):
9024 self.sect3.append(value)
9025 def insert_sect3_at(self, index, value):
9026 self.sect3.insert(index, value)
9027 def replace_sect3_at(self, index, value):
9028 self.sect3[index] = value
9029 def get_valueOf_(self): return self.valueOf_
9030 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
9031 def hasContent_(self):
9032 if (
9033 self.para or
9034 self.sect3 or
9035 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
9036 self.content_
9037 ):
9038 return True
9039 else:
9040 return False
9041 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS2Type', pretty_print=True):
9042 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docInternalS2Type')
9043 if imported_ns_def_ is not None:
9044 namespacedef_ = imported_ns_def_
9045 if pretty_print:
9046 eol_ = '\n'
9047 else:
9048 eol_ = ''
9049 if self.original_tagname_ is not None and name_ == 'docInternalS2Type':
9050 name_ = self.original_tagname_
9051 if UseCapturedNS_ and self.ns_prefix_:
9052 namespaceprefix_ = self.ns_prefix_ + ':'
9053 showIndent(outfile, level, pretty_print)
9054 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
9055 already_processed = set()
9056 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docInternalS2Type')
9057 if self.hasContent_hasContent_():
9058 outfile.write('>%s' % (eol_, ))
9059 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docInternalS2Type', pretty_print=pretty_print)
9060 showIndent(outfile, level, pretty_print)
9061 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
9062 else:
9063 outfile.write('/>%s' % (eol_, ))
9064 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS2Type'):
9065 pass
9066 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS2Type', fromsubclass_=False, pretty_print=True):
9067 if not fromsubclass_:
9068 for item_ in self.content_:
9069 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
9070 if pretty_print:
9071 eol_ = '\n'
9072 else:
9073 eol_ = ''
9074 for para_ in self.para:
9075 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
9076 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
9077 for sect3_ in self.sect3:
9078 namespaceprefix_ = self.sect3_nsprefix_ + ':' if (UseCapturedNS_ and self.sect3_nsprefix_) else ''
9079 sect3_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect3', pretty_print=pretty_print)
9080 def build(self, node, gds_collector_=None):
9081 self.gds_collector_ = gds_collector_
9082 if SaveElementTreeNode:
9083 self.gds_elementtree_node_ = node
9084 already_processed = set()
9085 self.ns_prefix_ = node.prefix
9086 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
9087 self.valueOf_ = get_all_text_(node)
9088 if node.text is not None:
9089 obj_ = self.mixedclass_(MixedContainer.CategoryText,
9090 MixedContainer.TypeNone, '', node.text)
9091 self.content_.append(obj_)
9092 for child in node:
9093 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
9094 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
9095 return self
9096 def buildAttributes(self, node, attrs, already_processed):
9097 pass
9098 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
9099 if nodeName_ == 'para':
9100 obj_ = docParaType.factory(parent_object_=self)
9101 obj_.build(child_, gds_collector_=gds_collector_)
9102 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
9103 MixedContainer.TypeNone, 'para', obj_)
9104 self.content_.append(obj_)
9105 if hasattr(self, 'add_para'):
9106 self.add_para(obj_.value)
9107 elif hasattr(self, 'set_para'):
9108 self.set_para(obj_.value)
9109 elif nodeName_ == 'sect3':
9110 obj_ = docSect3Type.factory(parent_object_=self)
9111 obj_.build(child_, gds_collector_=gds_collector_)
9112 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
9113 MixedContainer.TypeNone, 'sect3', obj_)
9114 self.content_.append(obj_)
9115 if hasattr(self, 'add_sect3'):
9116 self.add_sect3(obj_.value)
9117 elif hasattr(self, 'set_sect3'):
9118 self.set_sect3(obj_.value)
9119 if not fromsubclass_ and child_.tail is not None:
9120 obj_ = self.mixedclass_(MixedContainer.CategoryText,
9121 MixedContainer.TypeNone, '', child_.tail)
9122 self.content_.append(obj_)
9123# end class docInternalS2Type
9124
9125
9126class docInternalS3Type(GeneratedsSuper):
9127 __hash__ = GeneratedsSuper.__hash__
9128 subclass = None
9129 superclass = None
9130 def __init__(self, para=None, sect3=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
9131 self.gds_collector_ = gds_collector_
9132 self.gds_elementtree_node_ = None
9133 self.original_tagname_ = None
9134 self.parent_object_ = kwargs_.get('parent_object_')
9135 self.ns_prefix_ = None
9136 if para is None:
9137 self.para = []
9138 else:
9139 self.para = para
9140 self.para_nsprefix_ = None
9141 if sect3 is None:
9142 self.sect3 = []
9143 else:
9144 self.sect3 = sect3
9145 self.sect3_nsprefix_ = None
9146 self.valueOf_ = valueOf_
9147 if mixedclass_ is None:
9148 self.mixedclass_ = MixedContainer
9149 else:
9150 self.mixedclass_ = mixedclass_
9151 if content_ is None:
9152 self.content_ = []
9153 else:
9154 self.content_ = content_
9155 self.valueOf_ = valueOf_
9156 def factory(*args_, **kwargs_):
9157 if CurrentSubclassModule_ is not None:
9158 subclass = getSubclassFromModule_(
9159 CurrentSubclassModule_, docInternalS3Type)
9160 if subclass is not None:
9161 return subclass(*args_, **kwargs_)
9162 if docInternalS3Type.subclass:
9163 return docInternalS3Type.subclass(*args_, **kwargs_)
9164 else:
9165 return docInternalS3Type(*args_, **kwargs_)
9166 factory = staticmethod(factory)
9168 return self.ns_prefix_
9169 def set_ns_prefix_(self, ns_prefix):
9170 self.ns_prefix_ = ns_prefix
9171 def get_para(self):
9172 return self.para
9173 def set_para(self, para):
9174 self.para = para
9175 def add_para(self, value):
9176 self.para.append(value)
9177 def insert_para_at(self, index, value):
9178 self.para.insert(index, value)
9179 def replace_para_at(self, index, value):
9180 self.para[index] = value
9181 def get_sect3(self):
9182 return self.sect3
9183 def set_sect3(self, sect3):
9184 self.sect3 = sect3
9185 def add_sect3(self, value):
9186 self.sect3.append(value)
9187 def insert_sect3_at(self, index, value):
9188 self.sect3.insert(index, value)
9189 def replace_sect3_at(self, index, value):
9190 self.sect3[index] = value
9191 def get_valueOf_(self): return self.valueOf_
9192 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
9193 def hasContent_(self):
9194 if (
9195 self.para or
9196 self.sect3 or
9197 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
9198 self.content_
9199 ):
9200 return True
9201 else:
9202 return False
9203 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS3Type', pretty_print=True):
9204 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docInternalS3Type')
9205 if imported_ns_def_ is not None:
9206 namespacedef_ = imported_ns_def_
9207 if pretty_print:
9208 eol_ = '\n'
9209 else:
9210 eol_ = ''
9211 if self.original_tagname_ is not None and name_ == 'docInternalS3Type':
9212 name_ = self.original_tagname_
9213 if UseCapturedNS_ and self.ns_prefix_:
9214 namespaceprefix_ = self.ns_prefix_ + ':'
9215 showIndent(outfile, level, pretty_print)
9216 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
9217 already_processed = set()
9218 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docInternalS3Type')
9219 if self.hasContent_hasContent_():
9220 outfile.write('>%s' % (eol_, ))
9221 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docInternalS3Type', pretty_print=pretty_print)
9222 showIndent(outfile, level, pretty_print)
9223 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
9224 else:
9225 outfile.write('/>%s' % (eol_, ))
9226 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS3Type'):
9227 pass
9228 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS3Type', fromsubclass_=False, pretty_print=True):
9229 if not fromsubclass_:
9230 for item_ in self.content_:
9231 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
9232 if pretty_print:
9233 eol_ = '\n'
9234 else:
9235 eol_ = ''
9236 for para_ in self.para:
9237 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
9238 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
9239 for sect3_ in self.sect3:
9240 namespaceprefix_ = self.sect3_nsprefix_ + ':' if (UseCapturedNS_ and self.sect3_nsprefix_) else ''
9241 sect3_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect3', pretty_print=pretty_print)
9242 def build(self, node, gds_collector_=None):
9243 self.gds_collector_ = gds_collector_
9244 if SaveElementTreeNode:
9245 self.gds_elementtree_node_ = node
9246 already_processed = set()
9247 self.ns_prefix_ = node.prefix
9248 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
9249 self.valueOf_ = get_all_text_(node)
9250 if node.text is not None:
9251 obj_ = self.mixedclass_(MixedContainer.CategoryText,
9252 MixedContainer.TypeNone, '', node.text)
9253 self.content_.append(obj_)
9254 for child in node:
9255 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
9256 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
9257 return self
9258 def buildAttributes(self, node, attrs, already_processed):
9259 pass
9260 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
9261 if nodeName_ == 'para':
9262 obj_ = docParaType.factory(parent_object_=self)
9263 obj_.build(child_, gds_collector_=gds_collector_)
9264 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
9265 MixedContainer.TypeNone, 'para', obj_)
9266 self.content_.append(obj_)
9267 if hasattr(self, 'add_para'):
9268 self.add_para(obj_.value)
9269 elif hasattr(self, 'set_para'):
9270 self.set_para(obj_.value)
9271 elif nodeName_ == 'sect3':
9272 obj_ = docSect4Type.factory(parent_object_=self)
9273 obj_.build(child_, gds_collector_=gds_collector_)
9274 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
9275 MixedContainer.TypeNone, 'sect3', obj_)
9276 self.content_.append(obj_)
9277 if hasattr(self, 'add_sect3'):
9278 self.add_sect3(obj_.value)
9279 elif hasattr(self, 'set_sect3'):
9280 self.set_sect3(obj_.value)
9281 if not fromsubclass_ and child_.tail is not None:
9282 obj_ = self.mixedclass_(MixedContainer.CategoryText,
9283 MixedContainer.TypeNone, '', child_.tail)
9284 self.content_.append(obj_)
9285# end class docInternalS3Type
9286
9287
9288class docInternalS4Type(GeneratedsSuper):
9289 __hash__ = GeneratedsSuper.__hash__
9290 subclass = None
9291 superclass = None
9292 def __init__(self, para=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
9293 self.gds_collector_ = gds_collector_
9294 self.gds_elementtree_node_ = None
9295 self.original_tagname_ = None
9296 self.parent_object_ = kwargs_.get('parent_object_')
9297 self.ns_prefix_ = None
9298 if para is None:
9299 self.para = []
9300 else:
9301 self.para = para
9302 self.para_nsprefix_ = None
9303 self.valueOf_ = valueOf_
9304 if mixedclass_ is None:
9305 self.mixedclass_ = MixedContainer
9306 else:
9307 self.mixedclass_ = mixedclass_
9308 if content_ is None:
9309 self.content_ = []
9310 else:
9311 self.content_ = content_
9312 self.valueOf_ = valueOf_
9313 def factory(*args_, **kwargs_):
9314 if CurrentSubclassModule_ is not None:
9315 subclass = getSubclassFromModule_(
9316 CurrentSubclassModule_, docInternalS4Type)
9317 if subclass is not None:
9318 return subclass(*args_, **kwargs_)
9319 if docInternalS4Type.subclass:
9320 return docInternalS4Type.subclass(*args_, **kwargs_)
9321 else:
9322 return docInternalS4Type(*args_, **kwargs_)
9323 factory = staticmethod(factory)
9325 return self.ns_prefix_
9326 def set_ns_prefix_(self, ns_prefix):
9327 self.ns_prefix_ = ns_prefix
9328 def get_para(self):
9329 return self.para
9330 def set_para(self, para):
9331 self.para = para
9332 def add_para(self, value):
9333 self.para.append(value)
9334 def insert_para_at(self, index, value):
9335 self.para.insert(index, value)
9336 def replace_para_at(self, index, value):
9337 self.para[index] = value
9338 def get_valueOf_(self): return self.valueOf_
9339 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
9340 def hasContent_(self):
9341 if (
9342 self.para or
9343 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
9344 self.content_
9345 ):
9346 return True
9347 else:
9348 return False
9349 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS4Type', pretty_print=True):
9350 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docInternalS4Type')
9351 if imported_ns_def_ is not None:
9352 namespacedef_ = imported_ns_def_
9353 if pretty_print:
9354 eol_ = '\n'
9355 else:
9356 eol_ = ''
9357 if self.original_tagname_ is not None and name_ == 'docInternalS4Type':
9358 name_ = self.original_tagname_
9359 if UseCapturedNS_ and self.ns_prefix_:
9360 namespaceprefix_ = self.ns_prefix_ + ':'
9361 showIndent(outfile, level, pretty_print)
9362 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
9363 already_processed = set()
9364 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docInternalS4Type')
9365 if self.hasContent_hasContent_():
9366 outfile.write('>%s' % (eol_, ))
9367 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docInternalS4Type', pretty_print=pretty_print)
9368 showIndent(outfile, level, pretty_print)
9369 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
9370 else:
9371 outfile.write('/>%s' % (eol_, ))
9372 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS4Type'):
9373 pass
9374 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS4Type', fromsubclass_=False, pretty_print=True):
9375 if not fromsubclass_:
9376 for item_ in self.content_:
9377 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
9378 if pretty_print:
9379 eol_ = '\n'
9380 else:
9381 eol_ = ''
9382 for para_ in self.para:
9383 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
9384 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
9385 def build(self, node, gds_collector_=None):
9386 self.gds_collector_ = gds_collector_
9387 if SaveElementTreeNode:
9388 self.gds_elementtree_node_ = node
9389 already_processed = set()
9390 self.ns_prefix_ = node.prefix
9391 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
9392 self.valueOf_ = get_all_text_(node)
9393 if node.text is not None:
9394 obj_ = self.mixedclass_(MixedContainer.CategoryText,
9395 MixedContainer.TypeNone, '', node.text)
9396 self.content_.append(obj_)
9397 for child in node:
9398 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
9399 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
9400 return self
9401 def buildAttributes(self, node, attrs, already_processed):
9402 pass
9403 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
9404 if nodeName_ == 'para':
9405 obj_ = docParaType.factory(parent_object_=self)
9406 obj_.build(child_, gds_collector_=gds_collector_)
9407 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
9408 MixedContainer.TypeNone, 'para', obj_)
9409 self.content_.append(obj_)
9410 if hasattr(self, 'add_para'):
9411 self.add_para(obj_.value)
9412 elif hasattr(self, 'set_para'):
9413 self.set_para(obj_.value)
9414 if not fromsubclass_ and child_.tail is not None:
9415 obj_ = self.mixedclass_(MixedContainer.CategoryText,
9416 MixedContainer.TypeNone, '', child_.tail)
9417 self.content_.append(obj_)
9418# end class docInternalS4Type
9419
9420
9421class docTitleType(GeneratedsSuper):
9422 __hash__ = GeneratedsSuper.__hash__
9423 subclass = None
9424 superclass = None
9425 def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
9426 self.gds_collector_ = gds_collector_
9427 self.gds_elementtree_node_ = None
9428 self.original_tagname_ = None
9429 self.parent_object_ = kwargs_.get('parent_object_')
9430 self.ns_prefix_ = None
9431 if ulink is None:
9432 self.ulink = []
9433 else:
9434 self.ulink = ulink
9435 self.ulink_nsprefix_ = None
9436 if bold is None:
9437 self.bold = []
9438 else:
9439 self.bold = bold
9440 self.bold_nsprefix_ = None
9441 if s is None:
9442 self.s = []
9443 else:
9444 self.s = s
9445 self.s_nsprefix_ = None
9446 if strike is None:
9447 self.strike = []
9448 else:
9449 self.strike = strike
9450 self.strike_nsprefix_ = None
9451 if underline is None:
9452 self.underline = []
9453 else:
9454 self.underline = underline
9455 self.underline_nsprefix_ = None
9456 if emphasis is None:
9457 self.emphasis = []
9458 else:
9459 self.emphasis = emphasis
9460 self.emphasis_nsprefix_ = None
9461 if computeroutput is None:
9462 self.computeroutput = []
9463 else:
9464 self.computeroutput = computeroutput
9465 self.computeroutput_nsprefix_ = None
9466 if subscript is None:
9467 self.subscript = []
9468 else:
9469 self.subscript = subscript
9470 self.subscript_nsprefix_ = None
9471 if superscript is None:
9472 self.superscript = []
9473 else:
9474 self.superscript = superscript
9475 self.superscript_nsprefix_ = None
9476 if center is None:
9477 self.center = []
9478 else:
9479 self.center = center
9480 self.center_nsprefix_ = None
9481 if small is None:
9482 self.small = []
9483 else:
9484 self.small = small
9485 self.small_nsprefix_ = None
9486 if cite is None:
9487 self.cite = []
9488 else:
9489 self.cite = cite
9490 self.cite_nsprefix_ = None
9491 if del_ is None:
9492 self.del_ = []
9493 else:
9494 self.del_ = del_
9495 self.del__nsprefix_ = None
9496 if ins is None:
9497 self.ins = []
9498 else:
9499 self.ins = ins
9500 self.ins_nsprefix_ = None
9501 if htmlonly is None:
9502 self.htmlonly = []
9503 else:
9504 self.htmlonly = htmlonly
9505 self.htmlonly_nsprefix_ = None
9506 if manonly is None:
9507 self.manonly = []
9508 else:
9509 self.manonly = manonly
9510 self.manonly_nsprefix_ = None
9511 if xmlonly is None:
9512 self.xmlonly = []
9513 else:
9514 self.xmlonly = xmlonly
9515 self.xmlonly_nsprefix_ = None
9516 if rtfonly is None:
9517 self.rtfonly = []
9518 else:
9519 self.rtfonly = rtfonly
9520 self.rtfonly_nsprefix_ = None
9521 if latexonly is None:
9522 self.latexonly = []
9523 else:
9524 self.latexonly = latexonly
9525 self.latexonly_nsprefix_ = None
9526 if docbookonly is None:
9527 self.docbookonly = []
9528 else:
9529 self.docbookonly = docbookonly
9530 self.docbookonly_nsprefix_ = None
9531 if image is None:
9532 self.image = []
9533 else:
9534 self.image = image
9535 self.image_nsprefix_ = None
9536 if dot is None:
9537 self.dot = []
9538 else:
9539 self.dot = dot
9540 self.dot_nsprefix_ = None
9541 if msc is None:
9542 self.msc = []
9543 else:
9544 self.msc = msc
9545 self.msc_nsprefix_ = None
9546 if plantuml is None:
9547 self.plantuml = []
9548 else:
9549 self.plantuml = plantuml
9550 self.plantuml_nsprefix_ = None
9551 if anchor is None:
9552 self.anchor = []
9553 else:
9554 self.anchor = anchor
9555 self.anchor_nsprefix_ = None
9556 if formula is None:
9557 self.formula = []
9558 else:
9559 self.formula = formula
9560 self.formula_nsprefix_ = None
9561 if ref is None:
9562 self.ref = []
9563 else:
9564 self.ref = ref
9565 self.ref_nsprefix_ = None
9566 if emoji is None:
9567 self.emoji = []
9568 else:
9569 self.emoji = emoji
9570 self.emoji_nsprefix_ = None
9571 if linebreak is None:
9572 self.linebreak = []
9573 else:
9574 self.linebreak = linebreak
9575 self.linebreak_nsprefix_ = None
9576 self.valueOf_ = valueOf_
9577 if mixedclass_ is None:
9578 self.mixedclass_ = MixedContainer
9579 else:
9580 self.mixedclass_ = mixedclass_
9581 if content_ is None:
9582 self.content_ = []
9583 else:
9584 self.content_ = content_
9585 self.valueOf_ = valueOf_
9586 def factory(*args_, **kwargs_):
9587 if CurrentSubclassModule_ is not None:
9588 subclass = getSubclassFromModule_(
9589 CurrentSubclassModule_, docTitleType)
9590 if subclass is not None:
9591 return subclass(*args_, **kwargs_)
9592 if docTitleType.subclass:
9593 return docTitleType.subclass(*args_, **kwargs_)
9594 else:
9595 return docTitleType(*args_, **kwargs_)
9596 factory = staticmethod(factory)
9598 return self.ns_prefix_
9599 def set_ns_prefix_(self, ns_prefix):
9600 self.ns_prefix_ = ns_prefix
9601 def get_ulink(self):
9602 return self.ulink
9603 def set_ulink(self, ulink):
9604 self.ulink = ulink
9605 def add_ulink(self, value):
9606 self.ulink.append(value)
9607 def insert_ulink_at(self, index, value):
9608 self.ulink.insert(index, value)
9609 def replace_ulink_at(self, index, value):
9610 self.ulink[index] = value
9611 def get_bold(self):
9612 return self.bold
9613 def set_bold(self, bold):
9614 self.bold = bold
9615 def add_bold(self, value):
9616 self.bold.append(value)
9617 def insert_bold_at(self, index, value):
9618 self.bold.insert(index, value)
9619 def replace_bold_at(self, index, value):
9620 self.bold[index] = value
9621 def get_s(self):
9622 return self.s
9623 def set_s(self, s):
9624 self.s = s
9625 def add_s(self, value):
9626 self.s.append(value)
9627 def insert_s_at(self, index, value):
9628 self.s.insert(index, value)
9629 def replace_s_at(self, index, value):
9630 self.s[index] = value
9631 def get_strike(self):
9632 return self.strike
9633 def set_strike(self, strike):
9634 self.strike = strike
9635 def add_strike(self, value):
9636 self.strike.append(value)
9637 def insert_strike_at(self, index, value):
9638 self.strike.insert(index, value)
9639 def replace_strike_at(self, index, value):
9640 self.strike[index] = value
9641 def get_underline(self):
9642 return self.underline
9643 def set_underline(self, underline):
9644 self.underline = underline
9645 def add_underline(self, value):
9646 self.underline.append(value)
9647 def insert_underline_at(self, index, value):
9648 self.underline.insert(index, value)
9649 def replace_underline_at(self, index, value):
9650 self.underline[index] = value
9651 def get_emphasis(self):
9652 return self.emphasis
9653 def set_emphasis(self, emphasis):
9654 self.emphasis = emphasis
9655 def add_emphasis(self, value):
9656 self.emphasis.append(value)
9657 def insert_emphasis_at(self, index, value):
9658 self.emphasis.insert(index, value)
9659 def replace_emphasis_at(self, index, value):
9660 self.emphasis[index] = value
9662 return self.computeroutput
9663 def set_computeroutput(self, computeroutput):
9664 self.computeroutput = computeroutput
9665 def add_computeroutput(self, value):
9666 self.computeroutput.append(value)
9667 def insert_computeroutput_at(self, index, value):
9668 self.computeroutput.insert(index, value)
9669 def replace_computeroutput_at(self, index, value):
9670 self.computeroutput[index] = value
9671 def get_subscript(self):
9672 return self.subscript
9673 def set_subscript(self, subscript):
9674 self.subscript = subscript
9675 def add_subscript(self, value):
9676 self.subscript.append(value)
9677 def insert_subscript_at(self, index, value):
9678 self.subscript.insert(index, value)
9679 def replace_subscript_at(self, index, value):
9680 self.subscript[index] = value
9682 return self.superscript
9683 def set_superscript(self, superscript):
9684 self.superscript = superscript
9685 def add_superscript(self, value):
9686 self.superscript.append(value)
9687 def insert_superscript_at(self, index, value):
9688 self.superscript.insert(index, value)
9689 def replace_superscript_at(self, index, value):
9690 self.superscript[index] = value
9691 def get_center(self):
9692 return self.center
9693 def set_center(self, center):
9694 self.center = center
9695 def add_center(self, value):
9696 self.center.append(value)
9697 def insert_center_at(self, index, value):
9698 self.center.insert(index, value)
9699 def replace_center_at(self, index, value):
9700 self.center[index] = value
9701 def get_small(self):
9702 return self.small
9703 def set_small(self, small):
9704 self.small = small
9705 def add_small(self, value):
9706 self.small.append(value)
9707 def insert_small_at(self, index, value):
9708 self.small.insert(index, value)
9709 def replace_small_at(self, index, value):
9710 self.small[index] = value
9711 def get_cite(self):
9712 return self.cite
9713 def set_cite(self, cite):
9714 self.cite = cite
9715 def add_cite(self, value):
9716 self.cite.append(value)
9717 def insert_cite_at(self, index, value):
9718 self.cite.insert(index, value)
9719 def replace_cite_at(self, index, value):
9720 self.cite[index] = value
9721 def get_del(self):
9722 return self.del_
9723 def set_del(self, del_):
9724 self.del_ = del_
9725 def add_del(self, value):
9726 self.del_.append(value)
9727 def insert_del_at(self, index, value):
9728 self.del_.insert(index, value)
9729 def replace_del_at(self, index, value):
9730 self.del_[index] = value
9731 def get_ins(self):
9732 return self.ins
9733 def set_ins(self, ins):
9734 self.ins = ins
9735 def add_ins(self, value):
9736 self.ins.append(value)
9737 def insert_ins_at(self, index, value):
9738 self.ins.insert(index, value)
9739 def replace_ins_at(self, index, value):
9740 self.ins[index] = value
9741 def get_htmlonly(self):
9742 return self.htmlonly
9743 def set_htmlonly(self, htmlonly):
9744 self.htmlonly = htmlonly
9745 def add_htmlonly(self, value):
9746 self.htmlonly.append(value)
9747 def insert_htmlonly_at(self, index, value):
9748 self.htmlonly.insert(index, value)
9749 def replace_htmlonly_at(self, index, value):
9750 self.htmlonly[index] = value
9751 def get_manonly(self):
9752 return self.manonly
9753 def set_manonly(self, manonly):
9754 self.manonly = manonly
9755 def add_manonly(self, value):
9756 self.manonly.append(value)
9757 def insert_manonly_at(self, index, value):
9758 self.manonly.insert(index, value)
9759 def replace_manonly_at(self, index, value):
9760 self.manonly[index] = value
9761 def get_xmlonly(self):
9762 return self.xmlonly
9763 def set_xmlonly(self, xmlonly):
9764 self.xmlonly = xmlonly
9765 def add_xmlonly(self, value):
9766 self.xmlonly.append(value)
9767 def insert_xmlonly_at(self, index, value):
9768 self.xmlonly.insert(index, value)
9769 def replace_xmlonly_at(self, index, value):
9770 self.xmlonly[index] = value
9771 def get_rtfonly(self):
9772 return self.rtfonly
9773 def set_rtfonly(self, rtfonly):
9774 self.rtfonly = rtfonly
9775 def add_rtfonly(self, value):
9776 self.rtfonly.append(value)
9777 def insert_rtfonly_at(self, index, value):
9778 self.rtfonly.insert(index, value)
9779 def replace_rtfonly_at(self, index, value):
9780 self.rtfonly[index] = value
9781 def get_latexonly(self):
9782 return self.latexonly
9783 def set_latexonly(self, latexonly):
9784 self.latexonly = latexonly
9785 def add_latexonly(self, value):
9786 self.latexonly.append(value)
9787 def insert_latexonly_at(self, index, value):
9788 self.latexonly.insert(index, value)
9789 def replace_latexonly_at(self, index, value):
9790 self.latexonly[index] = value
9792 return self.docbookonly
9793 def set_docbookonly(self, docbookonly):
9794 self.docbookonly = docbookonly
9795 def add_docbookonly(self, value):
9796 self.docbookonly.append(value)
9797 def insert_docbookonly_at(self, index, value):
9798 self.docbookonly.insert(index, value)
9799 def replace_docbookonly_at(self, index, value):
9800 self.docbookonly[index] = value
9801 def get_image(self):
9802 return self.image
9803 def set_image(self, image):
9804 self.image = image
9805 def add_image(self, value):
9806 self.image.append(value)
9807 def insert_image_at(self, index, value):
9808 self.image.insert(index, value)
9809 def replace_image_at(self, index, value):
9810 self.image[index] = value
9811 def get_dot(self):
9812 return self.dot
9813 def set_dot(self, dot):
9814 self.dot = dot
9815 def add_dot(self, value):
9816 self.dot.append(value)
9817 def insert_dot_at(self, index, value):
9818 self.dot.insert(index, value)
9819 def replace_dot_at(self, index, value):
9820 self.dot[index] = value
9821 def get_msc(self):
9822 return self.msc
9823 def set_msc(self, msc):
9824 self.msc = msc
9825 def add_msc(self, value):
9826 self.msc.append(value)
9827 def insert_msc_at(self, index, value):
9828 self.msc.insert(index, value)
9829 def replace_msc_at(self, index, value):
9830 self.msc[index] = value
9831 def get_plantuml(self):
9832 return self.plantuml
9833 def set_plantuml(self, plantuml):
9834 self.plantuml = plantuml
9835 def add_plantuml(self, value):
9836 self.plantuml.append(value)
9837 def insert_plantuml_at(self, index, value):
9838 self.plantuml.insert(index, value)
9839 def replace_plantuml_at(self, index, value):
9840 self.plantuml[index] = value
9841 def get_anchor(self):
9842 return self.anchor
9843 def set_anchor(self, anchor):
9844 self.anchor = anchor
9845 def add_anchor(self, value):
9846 self.anchor.append(value)
9847 def insert_anchor_at(self, index, value):
9848 self.anchor.insert(index, value)
9849 def replace_anchor_at(self, index, value):
9850 self.anchor[index] = value
9851 def get_formula(self):
9852 return self.formula
9853 def set_formula(self, formula):
9854 self.formula = formula
9855 def add_formula(self, value):
9856 self.formula.append(value)
9857 def insert_formula_at(self, index, value):
9858 self.formula.insert(index, value)
9859 def replace_formula_at(self, index, value):
9860 self.formula[index] = value
9861 def get_ref(self):
9862 return self.ref
9863 def set_ref(self, ref):
9864 self.ref = ref
9865 def add_ref(self, value):
9866 self.ref.append(value)
9867 def insert_ref_at(self, index, value):
9868 self.ref.insert(index, value)
9869 def replace_ref_at(self, index, value):
9870 self.ref[index] = value
9871 def get_emoji(self):
9872 return self.emoji
9873 def set_emoji(self, emoji):
9874 self.emoji = emoji
9875 def add_emoji(self, value):
9876 self.emoji.append(value)
9877 def insert_emoji_at(self, index, value):
9878 self.emoji.insert(index, value)
9879 def replace_emoji_at(self, index, value):
9880 self.emoji[index] = value
9881 def get_linebreak(self):
9882 return self.linebreak
9883 def set_linebreak(self, linebreak):
9884 self.linebreak = linebreak
9885 def add_linebreak(self, value):
9886 self.linebreak.append(value)
9887 def insert_linebreak_at(self, index, value):
9888 self.linebreak.insert(index, value)
9889 def replace_linebreak_at(self, index, value):
9890 self.linebreak[index] = value
9891 def get_valueOf_(self): return self.valueOf_
9892 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
9893 def hasContent_(self):
9894 if (
9895 self.ulink or
9896 self.bold or
9897 self.s or
9898 self.strike or
9899 self.underline or
9900 self.emphasis or
9901 self.computeroutput or
9902 self.subscript or
9903 self.superscript or
9904 self.center or
9905 self.small or
9906 self.cite or
9907 self.del_ or
9908 self.ins or
9909 self.htmlonly or
9910 self.manonly or
9911 self.xmlonly or
9912 self.rtfonly or
9913 self.latexonly or
9914 self.docbookonly or
9915 self.image or
9916 self.dot or
9917 self.msc or
9918 self.plantuml or
9919 self.anchor or
9920 self.formula or
9921 self.ref or
9922 self.emoji or
9923 self.linebreak or
9924 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
9925 self.content_
9926 ):
9927 return True
9928 else:
9929 return False
9930 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTitleType', pretty_print=True):
9931 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docTitleType')
9932 if imported_ns_def_ is not None:
9933 namespacedef_ = imported_ns_def_
9934 if pretty_print:
9935 eol_ = '\n'
9936 else:
9937 eol_ = ''
9938 if self.original_tagname_ is not None and name_ == 'docTitleType':
9939 name_ = self.original_tagname_
9940 if UseCapturedNS_ and self.ns_prefix_:
9941 namespaceprefix_ = self.ns_prefix_ + ':'
9942 showIndent(outfile, level, pretty_print)
9943 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
9944 already_processed = set()
9945 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docTitleType')
9946 if self.hasContent_hasContent_():
9947 outfile.write('>%s' % (eol_, ))
9948 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docTitleType', pretty_print=pretty_print)
9949 showIndent(outfile, level, pretty_print)
9950 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
9951 else:
9952 outfile.write('/>%s' % (eol_, ))
9953 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTitleType'):
9954 pass
9955 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTitleType', fromsubclass_=False, pretty_print=True):
9956 if not fromsubclass_:
9957 for item_ in self.content_:
9958 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
9959 if pretty_print:
9960 eol_ = '\n'
9961 else:
9962 eol_ = ''
9963 for ulink_ in self.ulink:
9964 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
9965 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
9966 for bold_ in self.bold:
9967 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
9968 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
9969 for s_ in self.s:
9970 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
9971 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
9972 for strike_ in self.strike:
9973 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
9974 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
9975 for underline_ in self.underline:
9976 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
9977 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
9978 for emphasis_ in self.emphasis:
9979 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
9980 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
9981 for computeroutput_ in self.computeroutput:
9982 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
9983 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
9984 for subscript_ in self.subscript:
9985 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
9986 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
9987 for superscript_ in self.superscript:
9988 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
9989 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
9990 for center_ in self.center:
9991 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
9992 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
9993 for small_ in self.small:
9994 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
9995 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
9996 for cite_ in self.cite:
9997 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
9998 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
9999 for del_ in self.del_:
10000 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
10001 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
10002 for ins_ in self.ins:
10003 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
10004 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
10005 for htmlonly_ in self.htmlonly:
10006 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
10007 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
10008 for manonly_ in self.manonly:
10009 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
10010 showIndent(outfile, level, pretty_print)
10011 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
10012 for xmlonly_ in self.xmlonly:
10013 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
10014 showIndent(outfile, level, pretty_print)
10015 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
10016 for rtfonly_ in self.rtfonly:
10017 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
10018 showIndent(outfile, level, pretty_print)
10019 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
10020 for latexonly_ in self.latexonly:
10021 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
10022 showIndent(outfile, level, pretty_print)
10023 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
10024 for docbookonly_ in self.docbookonly:
10025 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
10026 showIndent(outfile, level, pretty_print)
10027 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
10028 for image_ in self.image:
10029 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
10030 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
10031 for dot_ in self.dot:
10032 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
10033 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
10034 for msc_ in self.msc:
10035 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
10036 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
10037 for plantuml_ in self.plantuml:
10038 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
10039 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
10040 for anchor_ in self.anchor:
10041 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
10042 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
10043 for formula_ in self.formula:
10044 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
10045 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
10046 for ref_ in self.ref:
10047 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
10048 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
10049 for emoji_ in self.emoji:
10050 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
10051 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
10052 for linebreak_ in self.linebreak:
10053 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
10054 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
10055 def build(self, node, gds_collector_=None):
10056 self.gds_collector_ = gds_collector_
10057 if SaveElementTreeNode:
10058 self.gds_elementtree_node_ = node
10059 already_processed = set()
10060 self.ns_prefix_ = node.prefix
10061 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
10062 self.valueOf_ = get_all_text_(node)
10063 if node.text is not None:
10064 obj_ = self.mixedclass_(MixedContainer.CategoryText,
10065 MixedContainer.TypeNone, '', node.text)
10066 self.content_.append(obj_)
10067 for child in node:
10068 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
10069 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
10070 return self
10071 def buildAttributes(self, node, attrs, already_processed):
10072 pass
10073 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
10074 if nodeName_ == 'ulink':
10075 obj_ = docURLLink.factory(parent_object_=self)
10076 obj_.build(child_, gds_collector_=gds_collector_)
10077 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10078 MixedContainer.TypeNone, 'ulink', obj_)
10079 self.content_.append(obj_)
10080 if hasattr(self, 'add_ulink'):
10081 self.add_ulink(obj_.value)
10082 elif hasattr(self, 'set_ulink'):
10083 self.set_ulink(obj_.value)
10084 elif nodeName_ == 'bold':
10085 obj_ = docMarkupType.factory(parent_object_=self)
10086 obj_.build(child_, gds_collector_=gds_collector_)
10087 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10088 MixedContainer.TypeNone, 'bold', obj_)
10089 self.content_.append(obj_)
10090 if hasattr(self, 'add_bold'):
10091 self.add_bold(obj_.value)
10092 elif hasattr(self, 'set_bold'):
10093 self.set_bold(obj_.value)
10094 elif nodeName_ == 's':
10095 obj_ = docMarkupType.factory(parent_object_=self)
10096 obj_.build(child_, gds_collector_=gds_collector_)
10097 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10098 MixedContainer.TypeNone, 's', obj_)
10099 self.content_.append(obj_)
10100 if hasattr(self, 'add_s'):
10101 self.add_s(obj_.value)
10102 elif hasattr(self, 'set_s'):
10103 self.set_s(obj_.value)
10104 elif nodeName_ == 'strike':
10105 obj_ = docMarkupType.factory(parent_object_=self)
10106 obj_.build(child_, gds_collector_=gds_collector_)
10107 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10108 MixedContainer.TypeNone, 'strike', obj_)
10109 self.content_.append(obj_)
10110 if hasattr(self, 'add_strike'):
10111 self.add_strike(obj_.value)
10112 elif hasattr(self, 'set_strike'):
10113 self.set_strike(obj_.value)
10114 elif nodeName_ == 'underline':
10115 obj_ = docMarkupType.factory(parent_object_=self)
10116 obj_.build(child_, gds_collector_=gds_collector_)
10117 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10118 MixedContainer.TypeNone, 'underline', obj_)
10119 self.content_.append(obj_)
10120 if hasattr(self, 'add_underline'):
10121 self.add_underline(obj_.value)
10122 elif hasattr(self, 'set_underline'):
10123 self.set_underline(obj_.value)
10124 elif nodeName_ == 'emphasis':
10125 obj_ = docMarkupType.factory(parent_object_=self)
10126 obj_.build(child_, gds_collector_=gds_collector_)
10127 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10128 MixedContainer.TypeNone, 'emphasis', obj_)
10129 self.content_.append(obj_)
10130 if hasattr(self, 'add_emphasis'):
10131 self.add_emphasis(obj_.value)
10132 elif hasattr(self, 'set_emphasis'):
10133 self.set_emphasis(obj_.value)
10134 elif nodeName_ == 'computeroutput':
10135 obj_ = docMarkupType.factory(parent_object_=self)
10136 obj_.build(child_, gds_collector_=gds_collector_)
10137 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10138 MixedContainer.TypeNone, 'computeroutput', obj_)
10139 self.content_.append(obj_)
10140 if hasattr(self, 'add_computeroutput'):
10141 self.add_computeroutput(obj_.value)
10142 elif hasattr(self, 'set_computeroutput'):
10143 self.set_computeroutput(obj_.value)
10144 elif nodeName_ == 'subscript':
10145 obj_ = docMarkupType.factory(parent_object_=self)
10146 obj_.build(child_, gds_collector_=gds_collector_)
10147 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10148 MixedContainer.TypeNone, 'subscript', obj_)
10149 self.content_.append(obj_)
10150 if hasattr(self, 'add_subscript'):
10151 self.add_subscript(obj_.value)
10152 elif hasattr(self, 'set_subscript'):
10153 self.set_subscript(obj_.value)
10154 elif nodeName_ == 'superscript':
10155 obj_ = docMarkupType.factory(parent_object_=self)
10156 obj_.build(child_, gds_collector_=gds_collector_)
10157 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10158 MixedContainer.TypeNone, 'superscript', obj_)
10159 self.content_.append(obj_)
10160 if hasattr(self, 'add_superscript'):
10161 self.add_superscript(obj_.value)
10162 elif hasattr(self, 'set_superscript'):
10163 self.set_superscript(obj_.value)
10164 elif nodeName_ == 'center':
10165 obj_ = docMarkupType.factory(parent_object_=self)
10166 obj_.build(child_, gds_collector_=gds_collector_)
10167 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10168 MixedContainer.TypeNone, 'center', obj_)
10169 self.content_.append(obj_)
10170 if hasattr(self, 'add_center'):
10171 self.add_center(obj_.value)
10172 elif hasattr(self, 'set_center'):
10173 self.set_center(obj_.value)
10174 elif nodeName_ == 'small':
10175 obj_ = docMarkupType.factory(parent_object_=self)
10176 obj_.build(child_, gds_collector_=gds_collector_)
10177 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10178 MixedContainer.TypeNone, 'small', obj_)
10179 self.content_.append(obj_)
10180 if hasattr(self, 'add_small'):
10181 self.add_small(obj_.value)
10182 elif hasattr(self, 'set_small'):
10183 self.set_small(obj_.value)
10184 elif nodeName_ == 'cite':
10185 obj_ = docMarkupType.factory(parent_object_=self)
10186 obj_.build(child_, gds_collector_=gds_collector_)
10187 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10188 MixedContainer.TypeNone, 'cite', obj_)
10189 self.content_.append(obj_)
10190 if hasattr(self, 'add_cite'):
10191 self.add_cite(obj_.value)
10192 elif hasattr(self, 'set_cite'):
10193 self.set_cite(obj_.value)
10194 elif nodeName_ == 'del':
10195 obj_ = docMarkupType.factory(parent_object_=self)
10196 obj_.build(child_, gds_collector_=gds_collector_)
10197 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10198 MixedContainer.TypeNone, 'del', obj_)
10199 self.content_.append(obj_)
10200 if hasattr(self, 'add_del'):
10201 self.add_del(obj_.value)
10202 elif hasattr(self, 'set_del'):
10203 self.set_del(obj_.value)
10204 elif nodeName_ == 'ins':
10205 obj_ = docMarkupType.factory(parent_object_=self)
10206 obj_.build(child_, gds_collector_=gds_collector_)
10207 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10208 MixedContainer.TypeNone, 'ins', obj_)
10209 self.content_.append(obj_)
10210 if hasattr(self, 'add_ins'):
10211 self.add_ins(obj_.value)
10212 elif hasattr(self, 'set_ins'):
10213 self.set_ins(obj_.value)
10214 elif nodeName_ == 'htmlonly':
10215 obj_ = docHtmlOnlyType.factory(parent_object_=self)
10216 obj_.build(child_, gds_collector_=gds_collector_)
10217 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10218 MixedContainer.TypeNone, 'htmlonly', obj_)
10219 self.content_.append(obj_)
10220 if hasattr(self, 'add_htmlonly'):
10221 self.add_htmlonly(obj_.value)
10222 elif hasattr(self, 'set_htmlonly'):
10223 self.set_htmlonly(obj_.value)
10224 elif nodeName_ == 'manonly' and child_.text is not None:
10225 valuestr_ = child_.text
10226 valuestr_ = self.gds_parse_string(valuestr_, node, 'manonly')
10227 valuestr_ = self.gds_validate_string(valuestr_, node, 'manonly')
10228 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
10229 MixedContainer.TypeString, 'manonly', valuestr_)
10230 self.content_.append(obj_)
10231 self.manonly_nsprefix_ = child_.prefix
10232 elif nodeName_ == 'xmlonly' and child_.text is not None:
10233 valuestr_ = child_.text
10234 valuestr_ = self.gds_parse_string(valuestr_, node, 'xmlonly')
10235 valuestr_ = self.gds_validate_string(valuestr_, node, 'xmlonly')
10236 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
10237 MixedContainer.TypeString, 'xmlonly', valuestr_)
10238 self.content_.append(obj_)
10239 self.xmlonly_nsprefix_ = child_.prefix
10240 elif nodeName_ == 'rtfonly' and child_.text is not None:
10241 valuestr_ = child_.text
10242 valuestr_ = self.gds_parse_string(valuestr_, node, 'rtfonly')
10243 valuestr_ = self.gds_validate_string(valuestr_, node, 'rtfonly')
10244 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
10245 MixedContainer.TypeString, 'rtfonly', valuestr_)
10246 self.content_.append(obj_)
10247 self.rtfonly_nsprefix_ = child_.prefix
10248 elif nodeName_ == 'latexonly' and child_.text is not None:
10249 valuestr_ = child_.text
10250 valuestr_ = self.gds_parse_string(valuestr_, node, 'latexonly')
10251 valuestr_ = self.gds_validate_string(valuestr_, node, 'latexonly')
10252 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
10253 MixedContainer.TypeString, 'latexonly', valuestr_)
10254 self.content_.append(obj_)
10255 self.latexonly_nsprefix_ = child_.prefix
10256 elif nodeName_ == 'docbookonly' and child_.text is not None:
10257 valuestr_ = child_.text
10258 valuestr_ = self.gds_parse_string(valuestr_, node, 'docbookonly')
10259 valuestr_ = self.gds_validate_string(valuestr_, node, 'docbookonly')
10260 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
10261 MixedContainer.TypeString, 'docbookonly', valuestr_)
10262 self.content_.append(obj_)
10263 self.docbookonly_nsprefix_ = child_.prefix
10264 elif nodeName_ == 'image':
10265 obj_ = docImageType.factory(parent_object_=self)
10266 obj_.build(child_, gds_collector_=gds_collector_)
10267 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10268 MixedContainer.TypeNone, 'image', obj_)
10269 self.content_.append(obj_)
10270 if hasattr(self, 'add_image'):
10271 self.add_image(obj_.value)
10272 elif hasattr(self, 'set_image'):
10273 self.set_image(obj_.value)
10274 elif nodeName_ == 'dot':
10275 obj_ = docDotMscType.factory(parent_object_=self)
10276 obj_.build(child_, gds_collector_=gds_collector_)
10277 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10278 MixedContainer.TypeNone, 'dot', obj_)
10279 self.content_.append(obj_)
10280 if hasattr(self, 'add_dot'):
10281 self.add_dot(obj_.value)
10282 elif hasattr(self, 'set_dot'):
10283 self.set_dot(obj_.value)
10284 elif nodeName_ == 'msc':
10285 obj_ = docDotMscType.factory(parent_object_=self)
10286 obj_.build(child_, gds_collector_=gds_collector_)
10287 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10288 MixedContainer.TypeNone, 'msc', obj_)
10289 self.content_.append(obj_)
10290 if hasattr(self, 'add_msc'):
10291 self.add_msc(obj_.value)
10292 elif hasattr(self, 'set_msc'):
10293 self.set_msc(obj_.value)
10294 elif nodeName_ == 'plantuml':
10295 obj_ = docPlantumlType.factory(parent_object_=self)
10296 obj_.build(child_, gds_collector_=gds_collector_)
10297 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10298 MixedContainer.TypeNone, 'plantuml', obj_)
10299 self.content_.append(obj_)
10300 if hasattr(self, 'add_plantuml'):
10301 self.add_plantuml(obj_.value)
10302 elif hasattr(self, 'set_plantuml'):
10303 self.set_plantuml(obj_.value)
10304 elif nodeName_ == 'anchor':
10305 obj_ = docAnchorType.factory(parent_object_=self)
10306 obj_.build(child_, gds_collector_=gds_collector_)
10307 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10308 MixedContainer.TypeNone, 'anchor', obj_)
10309 self.content_.append(obj_)
10310 if hasattr(self, 'add_anchor'):
10311 self.add_anchor(obj_.value)
10312 elif hasattr(self, 'set_anchor'):
10313 self.set_anchor(obj_.value)
10314 elif nodeName_ == 'formula':
10315 obj_ = docFormulaType.factory(parent_object_=self)
10316 obj_.build(child_, gds_collector_=gds_collector_)
10317 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10318 MixedContainer.TypeNone, 'formula', obj_)
10319 self.content_.append(obj_)
10320 if hasattr(self, 'add_formula'):
10321 self.add_formula(obj_.value)
10322 elif hasattr(self, 'set_formula'):
10323 self.set_formula(obj_.value)
10324 elif nodeName_ == 'ref':
10325 obj_ = docRefTextType.factory(parent_object_=self)
10326 obj_.build(child_, gds_collector_=gds_collector_)
10327 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10328 MixedContainer.TypeNone, 'ref', obj_)
10329 self.content_.append(obj_)
10330 if hasattr(self, 'add_ref'):
10331 self.add_ref(obj_.value)
10332 elif hasattr(self, 'set_ref'):
10333 self.set_ref(obj_.value)
10334 elif nodeName_ == 'emoji':
10335 obj_ = docEmojiType.factory(parent_object_=self)
10336 obj_.build(child_, gds_collector_=gds_collector_)
10337 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10338 MixedContainer.TypeNone, 'emoji', obj_)
10339 self.content_.append(obj_)
10340 if hasattr(self, 'add_emoji'):
10341 self.add_emoji(obj_.value)
10342 elif hasattr(self, 'set_emoji'):
10343 self.set_emoji(obj_.value)
10344 elif nodeName_ == 'linebreak':
10345 obj_ = docEmptyType.factory(parent_object_=self)
10346 obj_.build(child_, gds_collector_=gds_collector_)
10347 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
10348 MixedContainer.TypeNone, 'linebreak', obj_)
10349 self.content_.append(obj_)
10350 if hasattr(self, 'add_linebreak'):
10351 self.add_linebreak(obj_.value)
10352 elif hasattr(self, 'set_linebreak'):
10353 self.set_linebreak(obj_.value)
10354 if not fromsubclass_ and child_.tail is not None:
10355 obj_ = self.mixedclass_(MixedContainer.CategoryText,
10356 MixedContainer.TypeNone, '', child_.tail)
10357 self.content_.append(obj_)
10358# end class docTitleType
10359
10360
10361class docSummaryType(GeneratedsSuper):
10362 __hash__ = GeneratedsSuper.__hash__
10363 subclass = None
10364 superclass = None
10365 def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
10366 self.gds_collector_ = gds_collector_
10367 self.gds_elementtree_node_ = None
10368 self.original_tagname_ = None
10369 self.parent_object_ = kwargs_.get('parent_object_')
10370 self.ns_prefix_ = None
10371 if ulink is None:
10372 self.ulink = []
10373 else:
10374 self.ulink = ulink
10375 self.ulink_nsprefix_ = None
10376 if bold is None:
10377 self.bold = []
10378 else:
10379 self.bold = bold
10380 self.bold_nsprefix_ = None
10381 if s is None:
10382 self.s = []
10383 else:
10384 self.s = s
10385 self.s_nsprefix_ = None
10386 if strike is None:
10387 self.strike = []
10388 else:
10389 self.strike = strike
10390 self.strike_nsprefix_ = None
10391 if underline is None:
10392 self.underline = []
10393 else:
10394 self.underline = underline
10395 self.underline_nsprefix_ = None
10396 if emphasis is None:
10397 self.emphasis = []
10398 else:
10399 self.emphasis = emphasis
10400 self.emphasis_nsprefix_ = None
10401 if computeroutput is None:
10402 self.computeroutput = []
10403 else:
10404 self.computeroutput = computeroutput
10405 self.computeroutput_nsprefix_ = None
10406 if subscript is None:
10407 self.subscript = []
10408 else:
10409 self.subscript = subscript
10410 self.subscript_nsprefix_ = None
10411 if superscript is None:
10412 self.superscript = []
10413 else:
10414 self.superscript = superscript
10415 self.superscript_nsprefix_ = None
10416 if center is None:
10417 self.center = []
10418 else:
10419 self.center = center
10420 self.center_nsprefix_ = None
10421 if small is None:
10422 self.small = []
10423 else:
10424 self.small = small
10425 self.small_nsprefix_ = None
10426 if cite is None:
10427 self.cite = []
10428 else:
10429 self.cite = cite
10430 self.cite_nsprefix_ = None
10431 if del_ is None:
10432 self.del_ = []
10433 else:
10434 self.del_ = del_
10435 self.del__nsprefix_ = None
10436 if ins is None:
10437 self.ins = []
10438 else:
10439 self.ins = ins
10440 self.ins_nsprefix_ = None
10441 if htmlonly is None:
10442 self.htmlonly = []
10443 else:
10444 self.htmlonly = htmlonly
10445 self.htmlonly_nsprefix_ = None
10446 if manonly is None:
10447 self.manonly = []
10448 else:
10449 self.manonly = manonly
10450 self.manonly_nsprefix_ = None
10451 if xmlonly is None:
10452 self.xmlonly = []
10453 else:
10454 self.xmlonly = xmlonly
10455 self.xmlonly_nsprefix_ = None
10456 if rtfonly is None:
10457 self.rtfonly = []
10458 else:
10459 self.rtfonly = rtfonly
10460 self.rtfonly_nsprefix_ = None
10461 if latexonly is None:
10462 self.latexonly = []
10463 else:
10464 self.latexonly = latexonly
10465 self.latexonly_nsprefix_ = None
10466 if docbookonly is None:
10467 self.docbookonly = []
10468 else:
10469 self.docbookonly = docbookonly
10470 self.docbookonly_nsprefix_ = None
10471 if image is None:
10472 self.image = []
10473 else:
10474 self.image = image
10475 self.image_nsprefix_ = None
10476 if dot is None:
10477 self.dot = []
10478 else:
10479 self.dot = dot
10480 self.dot_nsprefix_ = None
10481 if msc is None:
10482 self.msc = []
10483 else:
10484 self.msc = msc
10485 self.msc_nsprefix_ = None
10486 if plantuml is None:
10487 self.plantuml = []
10488 else:
10489 self.plantuml = plantuml
10490 self.plantuml_nsprefix_ = None
10491 if anchor is None:
10492 self.anchor = []
10493 else:
10494 self.anchor = anchor
10495 self.anchor_nsprefix_ = None
10496 if formula is None:
10497 self.formula = []
10498 else:
10499 self.formula = formula
10500 self.formula_nsprefix_ = None
10501 if ref is None:
10502 self.ref = []
10503 else:
10504 self.ref = ref
10505 self.ref_nsprefix_ = None
10506 if emoji is None:
10507 self.emoji = []
10508 else:
10509 self.emoji = emoji
10510 self.emoji_nsprefix_ = None
10511 if linebreak is None:
10512 self.linebreak = []
10513 else:
10514 self.linebreak = linebreak
10515 self.linebreak_nsprefix_ = None
10516 self.valueOf_ = valueOf_
10517 if mixedclass_ is None:
10518 self.mixedclass_ = MixedContainer
10519 else:
10520 self.mixedclass_ = mixedclass_
10521 if content_ is None:
10522 self.content_ = []
10523 else:
10524 self.content_ = content_
10525 self.valueOf_ = valueOf_
10526 def factory(*args_, **kwargs_):
10527 if CurrentSubclassModule_ is not None:
10528 subclass = getSubclassFromModule_(
10529 CurrentSubclassModule_, docSummaryType)
10530 if subclass is not None:
10531 return subclass(*args_, **kwargs_)
10532 if docSummaryType.subclass:
10533 return docSummaryType.subclass(*args_, **kwargs_)
10534 else:
10535 return docSummaryType(*args_, **kwargs_)
10536 factory = staticmethod(factory)
10538 return self.ns_prefix_
10539 def set_ns_prefix_(self, ns_prefix):
10540 self.ns_prefix_ = ns_prefix
10541 def get_ulink(self):
10542 return self.ulink
10543 def set_ulink(self, ulink):
10544 self.ulink = ulink
10545 def add_ulink(self, value):
10546 self.ulink.append(value)
10547 def insert_ulink_at(self, index, value):
10548 self.ulink.insert(index, value)
10549 def replace_ulink_at(self, index, value):
10550 self.ulink[index] = value
10551 def get_bold(self):
10552 return self.bold
10553 def set_bold(self, bold):
10554 self.bold = bold
10555 def add_bold(self, value):
10556 self.bold.append(value)
10557 def insert_bold_at(self, index, value):
10558 self.bold.insert(index, value)
10559 def replace_bold_at(self, index, value):
10560 self.bold[index] = value
10561 def get_s(self):
10562 return self.s
10563 def set_s(self, s):
10564 self.s = s
10565 def add_s(self, value):
10566 self.s.append(value)
10567 def insert_s_at(self, index, value):
10568 self.s.insert(index, value)
10569 def replace_s_at(self, index, value):
10570 self.s[index] = value
10571 def get_strike(self):
10572 return self.strike
10573 def set_strike(self, strike):
10574 self.strike = strike
10575 def add_strike(self, value):
10576 self.strike.append(value)
10577 def insert_strike_at(self, index, value):
10578 self.strike.insert(index, value)
10579 def replace_strike_at(self, index, value):
10580 self.strike[index] = value
10581 def get_underline(self):
10582 return self.underline
10583 def set_underline(self, underline):
10584 self.underline = underline
10585 def add_underline(self, value):
10586 self.underline.append(value)
10587 def insert_underline_at(self, index, value):
10588 self.underline.insert(index, value)
10589 def replace_underline_at(self, index, value):
10590 self.underline[index] = value
10591 def get_emphasis(self):
10592 return self.emphasis
10593 def set_emphasis(self, emphasis):
10594 self.emphasis = emphasis
10595 def add_emphasis(self, value):
10596 self.emphasis.append(value)
10597 def insert_emphasis_at(self, index, value):
10598 self.emphasis.insert(index, value)
10599 def replace_emphasis_at(self, index, value):
10600 self.emphasis[index] = value
10602 return self.computeroutput
10603 def set_computeroutput(self, computeroutput):
10604 self.computeroutput = computeroutput
10605 def add_computeroutput(self, value):
10606 self.computeroutput.append(value)
10607 def insert_computeroutput_at(self, index, value):
10608 self.computeroutput.insert(index, value)
10609 def replace_computeroutput_at(self, index, value):
10610 self.computeroutput[index] = value
10611 def get_subscript(self):
10612 return self.subscript
10613 def set_subscript(self, subscript):
10614 self.subscript = subscript
10615 def add_subscript(self, value):
10616 self.subscript.append(value)
10617 def insert_subscript_at(self, index, value):
10618 self.subscript.insert(index, value)
10619 def replace_subscript_at(self, index, value):
10620 self.subscript[index] = value
10622 return self.superscript
10623 def set_superscript(self, superscript):
10624 self.superscript = superscript
10625 def add_superscript(self, value):
10626 self.superscript.append(value)
10627 def insert_superscript_at(self, index, value):
10628 self.superscript.insert(index, value)
10629 def replace_superscript_at(self, index, value):
10630 self.superscript[index] = value
10631 def get_center(self):
10632 return self.center
10633 def set_center(self, center):
10634 self.center = center
10635 def add_center(self, value):
10636 self.center.append(value)
10637 def insert_center_at(self, index, value):
10638 self.center.insert(index, value)
10639 def replace_center_at(self, index, value):
10640 self.center[index] = value
10641 def get_small(self):
10642 return self.small
10643 def set_small(self, small):
10644 self.small = small
10645 def add_small(self, value):
10646 self.small.append(value)
10647 def insert_small_at(self, index, value):
10648 self.small.insert(index, value)
10649 def replace_small_at(self, index, value):
10650 self.small[index] = value
10651 def get_cite(self):
10652 return self.cite
10653 def set_cite(self, cite):
10654 self.cite = cite
10655 def add_cite(self, value):
10656 self.cite.append(value)
10657 def insert_cite_at(self, index, value):
10658 self.cite.insert(index, value)
10659 def replace_cite_at(self, index, value):
10660 self.cite[index] = value
10661 def get_del(self):
10662 return self.del_
10663 def set_del(self, del_):
10664 self.del_ = del_
10665 def add_del(self, value):
10666 self.del_.append(value)
10667 def insert_del_at(self, index, value):
10668 self.del_.insert(index, value)
10669 def replace_del_at(self, index, value):
10670 self.del_[index] = value
10671 def get_ins(self):
10672 return self.ins
10673 def set_ins(self, ins):
10674 self.ins = ins
10675 def add_ins(self, value):
10676 self.ins.append(value)
10677 def insert_ins_at(self, index, value):
10678 self.ins.insert(index, value)
10679 def replace_ins_at(self, index, value):
10680 self.ins[index] = value
10681 def get_htmlonly(self):
10682 return self.htmlonly
10683 def set_htmlonly(self, htmlonly):
10684 self.htmlonly = htmlonly
10685 def add_htmlonly(self, value):
10686 self.htmlonly.append(value)
10687 def insert_htmlonly_at(self, index, value):
10688 self.htmlonly.insert(index, value)
10689 def replace_htmlonly_at(self, index, value):
10690 self.htmlonly[index] = value
10691 def get_manonly(self):
10692 return self.manonly
10693 def set_manonly(self, manonly):
10694 self.manonly = manonly
10695 def add_manonly(self, value):
10696 self.manonly.append(value)
10697 def insert_manonly_at(self, index, value):
10698 self.manonly.insert(index, value)
10699 def replace_manonly_at(self, index, value):
10700 self.manonly[index] = value
10701 def get_xmlonly(self):
10702 return self.xmlonly
10703 def set_xmlonly(self, xmlonly):
10704 self.xmlonly = xmlonly
10705 def add_xmlonly(self, value):
10706 self.xmlonly.append(value)
10707 def insert_xmlonly_at(self, index, value):
10708 self.xmlonly.insert(index, value)
10709 def replace_xmlonly_at(self, index, value):
10710 self.xmlonly[index] = value
10711 def get_rtfonly(self):
10712 return self.rtfonly
10713 def set_rtfonly(self, rtfonly):
10714 self.rtfonly = rtfonly
10715 def add_rtfonly(self, value):
10716 self.rtfonly.append(value)
10717 def insert_rtfonly_at(self, index, value):
10718 self.rtfonly.insert(index, value)
10719 def replace_rtfonly_at(self, index, value):
10720 self.rtfonly[index] = value
10721 def get_latexonly(self):
10722 return self.latexonly
10723 def set_latexonly(self, latexonly):
10724 self.latexonly = latexonly
10725 def add_latexonly(self, value):
10726 self.latexonly.append(value)
10727 def insert_latexonly_at(self, index, value):
10728 self.latexonly.insert(index, value)
10729 def replace_latexonly_at(self, index, value):
10730 self.latexonly[index] = value
10732 return self.docbookonly
10733 def set_docbookonly(self, docbookonly):
10734 self.docbookonly = docbookonly
10735 def add_docbookonly(self, value):
10736 self.docbookonly.append(value)
10737 def insert_docbookonly_at(self, index, value):
10738 self.docbookonly.insert(index, value)
10739 def replace_docbookonly_at(self, index, value):
10740 self.docbookonly[index] = value
10741 def get_image(self):
10742 return self.image
10743 def set_image(self, image):
10744 self.image = image
10745 def add_image(self, value):
10746 self.image.append(value)
10747 def insert_image_at(self, index, value):
10748 self.image.insert(index, value)
10749 def replace_image_at(self, index, value):
10750 self.image[index] = value
10751 def get_dot(self):
10752 return self.dot
10753 def set_dot(self, dot):
10754 self.dot = dot
10755 def add_dot(self, value):
10756 self.dot.append(value)
10757 def insert_dot_at(self, index, value):
10758 self.dot.insert(index, value)
10759 def replace_dot_at(self, index, value):
10760 self.dot[index] = value
10761 def get_msc(self):
10762 return self.msc
10763 def set_msc(self, msc):
10764 self.msc = msc
10765 def add_msc(self, value):
10766 self.msc.append(value)
10767 def insert_msc_at(self, index, value):
10768 self.msc.insert(index, value)
10769 def replace_msc_at(self, index, value):
10770 self.msc[index] = value
10771 def get_plantuml(self):
10772 return self.plantuml
10773 def set_plantuml(self, plantuml):
10774 self.plantuml = plantuml
10775 def add_plantuml(self, value):
10776 self.plantuml.append(value)
10777 def insert_plantuml_at(self, index, value):
10778 self.plantuml.insert(index, value)
10779 def replace_plantuml_at(self, index, value):
10780 self.plantuml[index] = value
10781 def get_anchor(self):
10782 return self.anchor
10783 def set_anchor(self, anchor):
10784 self.anchor = anchor
10785 def add_anchor(self, value):
10786 self.anchor.append(value)
10787 def insert_anchor_at(self, index, value):
10788 self.anchor.insert(index, value)
10789 def replace_anchor_at(self, index, value):
10790 self.anchor[index] = value
10791 def get_formula(self):
10792 return self.formula
10793 def set_formula(self, formula):
10794 self.formula = formula
10795 def add_formula(self, value):
10796 self.formula.append(value)
10797 def insert_formula_at(self, index, value):
10798 self.formula.insert(index, value)
10799 def replace_formula_at(self, index, value):
10800 self.formula[index] = value
10801 def get_ref(self):
10802 return self.ref
10803 def set_ref(self, ref):
10804 self.ref = ref
10805 def add_ref(self, value):
10806 self.ref.append(value)
10807 def insert_ref_at(self, index, value):
10808 self.ref.insert(index, value)
10809 def replace_ref_at(self, index, value):
10810 self.ref[index] = value
10811 def get_emoji(self):
10812 return self.emoji
10813 def set_emoji(self, emoji):
10814 self.emoji = emoji
10815 def add_emoji(self, value):
10816 self.emoji.append(value)
10817 def insert_emoji_at(self, index, value):
10818 self.emoji.insert(index, value)
10819 def replace_emoji_at(self, index, value):
10820 self.emoji[index] = value
10821 def get_linebreak(self):
10822 return self.linebreak
10823 def set_linebreak(self, linebreak):
10824 self.linebreak = linebreak
10825 def add_linebreak(self, value):
10826 self.linebreak.append(value)
10827 def insert_linebreak_at(self, index, value):
10828 self.linebreak.insert(index, value)
10829 def replace_linebreak_at(self, index, value):
10830 self.linebreak[index] = value
10831 def get_valueOf_(self): return self.valueOf_
10832 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
10833 def hasContent_(self):
10834 if (
10835 self.ulink or
10836 self.bold or
10837 self.s or
10838 self.strike or
10839 self.underline or
10840 self.emphasis or
10841 self.computeroutput or
10842 self.subscript or
10843 self.superscript or
10844 self.center or
10845 self.small or
10846 self.cite or
10847 self.del_ or
10848 self.ins or
10849 self.htmlonly or
10850 self.manonly or
10851 self.xmlonly or
10852 self.rtfonly or
10853 self.latexonly or
10854 self.docbookonly or
10855 self.image or
10856 self.dot or
10857 self.msc or
10858 self.plantuml or
10859 self.anchor or
10860 self.formula or
10861 self.ref or
10862 self.emoji or
10863 self.linebreak or
10864 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
10865 self.content_
10866 ):
10867 return True
10868 else:
10869 return False
10870 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSummaryType', pretty_print=True):
10871 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docSummaryType')
10872 if imported_ns_def_ is not None:
10873 namespacedef_ = imported_ns_def_
10874 if pretty_print:
10875 eol_ = '\n'
10876 else:
10877 eol_ = ''
10878 if self.original_tagname_ is not None and name_ == 'docSummaryType':
10879 name_ = self.original_tagname_
10880 if UseCapturedNS_ and self.ns_prefix_:
10881 namespaceprefix_ = self.ns_prefix_ + ':'
10882 showIndent(outfile, level, pretty_print)
10883 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
10884 already_processed = set()
10885 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docSummaryType')
10886 if self.hasContent_hasContent_():
10887 outfile.write('>%s' % (eol_, ))
10888 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docSummaryType', pretty_print=pretty_print)
10889 showIndent(outfile, level, pretty_print)
10890 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
10891 else:
10892 outfile.write('/>%s' % (eol_, ))
10893 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSummaryType'):
10894 pass
10895 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSummaryType', fromsubclass_=False, pretty_print=True):
10896 if not fromsubclass_:
10897 for item_ in self.content_:
10898 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
10899 if pretty_print:
10900 eol_ = '\n'
10901 else:
10902 eol_ = ''
10903 for ulink_ in self.ulink:
10904 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
10905 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
10906 for bold_ in self.bold:
10907 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
10908 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
10909 for s_ in self.s:
10910 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
10911 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
10912 for strike_ in self.strike:
10913 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
10914 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
10915 for underline_ in self.underline:
10916 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
10917 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
10918 for emphasis_ in self.emphasis:
10919 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
10920 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
10921 for computeroutput_ in self.computeroutput:
10922 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
10923 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
10924 for subscript_ in self.subscript:
10925 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
10926 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
10927 for superscript_ in self.superscript:
10928 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
10929 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
10930 for center_ in self.center:
10931 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
10932 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
10933 for small_ in self.small:
10934 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
10935 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
10936 for cite_ in self.cite:
10937 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
10938 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
10939 for del_ in self.del_:
10940 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
10941 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
10942 for ins_ in self.ins:
10943 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
10944 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
10945 for htmlonly_ in self.htmlonly:
10946 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
10947 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
10948 for manonly_ in self.manonly:
10949 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
10950 showIndent(outfile, level, pretty_print)
10951 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
10952 for xmlonly_ in self.xmlonly:
10953 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
10954 showIndent(outfile, level, pretty_print)
10955 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
10956 for rtfonly_ in self.rtfonly:
10957 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
10958 showIndent(outfile, level, pretty_print)
10959 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
10960 for latexonly_ in self.latexonly:
10961 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
10962 showIndent(outfile, level, pretty_print)
10963 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
10964 for docbookonly_ in self.docbookonly:
10965 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
10966 showIndent(outfile, level, pretty_print)
10967 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
10968 for image_ in self.image:
10969 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
10970 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
10971 for dot_ in self.dot:
10972 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
10973 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
10974 for msc_ in self.msc:
10975 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
10976 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
10977 for plantuml_ in self.plantuml:
10978 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
10979 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
10980 for anchor_ in self.anchor:
10981 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
10982 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
10983 for formula_ in self.formula:
10984 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
10985 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
10986 for ref_ in self.ref:
10987 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
10988 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
10989 for emoji_ in self.emoji:
10990 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
10991 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
10992 for linebreak_ in self.linebreak:
10993 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
10994 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
10995 def build(self, node, gds_collector_=None):
10996 self.gds_collector_ = gds_collector_
10997 if SaveElementTreeNode:
10998 self.gds_elementtree_node_ = node
10999 already_processed = set()
11000 self.ns_prefix_ = node.prefix
11001 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
11002 self.valueOf_ = get_all_text_(node)
11003 if node.text is not None:
11004 obj_ = self.mixedclass_(MixedContainer.CategoryText,
11005 MixedContainer.TypeNone, '', node.text)
11006 self.content_.append(obj_)
11007 for child in node:
11008 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
11009 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
11010 return self
11011 def buildAttributes(self, node, attrs, already_processed):
11012 pass
11013 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
11014 if nodeName_ == 'ulink':
11015 obj_ = docURLLink.factory(parent_object_=self)
11016 obj_.build(child_, gds_collector_=gds_collector_)
11017 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11018 MixedContainer.TypeNone, 'ulink', obj_)
11019 self.content_.append(obj_)
11020 if hasattr(self, 'add_ulink'):
11021 self.add_ulink(obj_.value)
11022 elif hasattr(self, 'set_ulink'):
11023 self.set_ulink(obj_.value)
11024 elif nodeName_ == 'bold':
11025 obj_ = docMarkupType.factory(parent_object_=self)
11026 obj_.build(child_, gds_collector_=gds_collector_)
11027 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11028 MixedContainer.TypeNone, 'bold', obj_)
11029 self.content_.append(obj_)
11030 if hasattr(self, 'add_bold'):
11031 self.add_bold(obj_.value)
11032 elif hasattr(self, 'set_bold'):
11033 self.set_bold(obj_.value)
11034 elif nodeName_ == 's':
11035 obj_ = docMarkupType.factory(parent_object_=self)
11036 obj_.build(child_, gds_collector_=gds_collector_)
11037 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11038 MixedContainer.TypeNone, 's', obj_)
11039 self.content_.append(obj_)
11040 if hasattr(self, 'add_s'):
11041 self.add_s(obj_.value)
11042 elif hasattr(self, 'set_s'):
11043 self.set_s(obj_.value)
11044 elif nodeName_ == 'strike':
11045 obj_ = docMarkupType.factory(parent_object_=self)
11046 obj_.build(child_, gds_collector_=gds_collector_)
11047 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11048 MixedContainer.TypeNone, 'strike', obj_)
11049 self.content_.append(obj_)
11050 if hasattr(self, 'add_strike'):
11051 self.add_strike(obj_.value)
11052 elif hasattr(self, 'set_strike'):
11053 self.set_strike(obj_.value)
11054 elif nodeName_ == 'underline':
11055 obj_ = docMarkupType.factory(parent_object_=self)
11056 obj_.build(child_, gds_collector_=gds_collector_)
11057 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11058 MixedContainer.TypeNone, 'underline', obj_)
11059 self.content_.append(obj_)
11060 if hasattr(self, 'add_underline'):
11061 self.add_underline(obj_.value)
11062 elif hasattr(self, 'set_underline'):
11063 self.set_underline(obj_.value)
11064 elif nodeName_ == 'emphasis':
11065 obj_ = docMarkupType.factory(parent_object_=self)
11066 obj_.build(child_, gds_collector_=gds_collector_)
11067 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11068 MixedContainer.TypeNone, 'emphasis', obj_)
11069 self.content_.append(obj_)
11070 if hasattr(self, 'add_emphasis'):
11071 self.add_emphasis(obj_.value)
11072 elif hasattr(self, 'set_emphasis'):
11073 self.set_emphasis(obj_.value)
11074 elif nodeName_ == 'computeroutput':
11075 obj_ = docMarkupType.factory(parent_object_=self)
11076 obj_.build(child_, gds_collector_=gds_collector_)
11077 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11078 MixedContainer.TypeNone, 'computeroutput', obj_)
11079 self.content_.append(obj_)
11080 if hasattr(self, 'add_computeroutput'):
11081 self.add_computeroutput(obj_.value)
11082 elif hasattr(self, 'set_computeroutput'):
11083 self.set_computeroutput(obj_.value)
11084 elif nodeName_ == 'subscript':
11085 obj_ = docMarkupType.factory(parent_object_=self)
11086 obj_.build(child_, gds_collector_=gds_collector_)
11087 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11088 MixedContainer.TypeNone, 'subscript', obj_)
11089 self.content_.append(obj_)
11090 if hasattr(self, 'add_subscript'):
11091 self.add_subscript(obj_.value)
11092 elif hasattr(self, 'set_subscript'):
11093 self.set_subscript(obj_.value)
11094 elif nodeName_ == 'superscript':
11095 obj_ = docMarkupType.factory(parent_object_=self)
11096 obj_.build(child_, gds_collector_=gds_collector_)
11097 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11098 MixedContainer.TypeNone, 'superscript', obj_)
11099 self.content_.append(obj_)
11100 if hasattr(self, 'add_superscript'):
11101 self.add_superscript(obj_.value)
11102 elif hasattr(self, 'set_superscript'):
11103 self.set_superscript(obj_.value)
11104 elif nodeName_ == 'center':
11105 obj_ = docMarkupType.factory(parent_object_=self)
11106 obj_.build(child_, gds_collector_=gds_collector_)
11107 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11108 MixedContainer.TypeNone, 'center', obj_)
11109 self.content_.append(obj_)
11110 if hasattr(self, 'add_center'):
11111 self.add_center(obj_.value)
11112 elif hasattr(self, 'set_center'):
11113 self.set_center(obj_.value)
11114 elif nodeName_ == 'small':
11115 obj_ = docMarkupType.factory(parent_object_=self)
11116 obj_.build(child_, gds_collector_=gds_collector_)
11117 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11118 MixedContainer.TypeNone, 'small', obj_)
11119 self.content_.append(obj_)
11120 if hasattr(self, 'add_small'):
11121 self.add_small(obj_.value)
11122 elif hasattr(self, 'set_small'):
11123 self.set_small(obj_.value)
11124 elif nodeName_ == 'cite':
11125 obj_ = docMarkupType.factory(parent_object_=self)
11126 obj_.build(child_, gds_collector_=gds_collector_)
11127 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11128 MixedContainer.TypeNone, 'cite', obj_)
11129 self.content_.append(obj_)
11130 if hasattr(self, 'add_cite'):
11131 self.add_cite(obj_.value)
11132 elif hasattr(self, 'set_cite'):
11133 self.set_cite(obj_.value)
11134 elif nodeName_ == 'del':
11135 obj_ = docMarkupType.factory(parent_object_=self)
11136 obj_.build(child_, gds_collector_=gds_collector_)
11137 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11138 MixedContainer.TypeNone, 'del', obj_)
11139 self.content_.append(obj_)
11140 if hasattr(self, 'add_del'):
11141 self.add_del(obj_.value)
11142 elif hasattr(self, 'set_del'):
11143 self.set_del(obj_.value)
11144 elif nodeName_ == 'ins':
11145 obj_ = docMarkupType.factory(parent_object_=self)
11146 obj_.build(child_, gds_collector_=gds_collector_)
11147 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11148 MixedContainer.TypeNone, 'ins', obj_)
11149 self.content_.append(obj_)
11150 if hasattr(self, 'add_ins'):
11151 self.add_ins(obj_.value)
11152 elif hasattr(self, 'set_ins'):
11153 self.set_ins(obj_.value)
11154 elif nodeName_ == 'htmlonly':
11155 obj_ = docHtmlOnlyType.factory(parent_object_=self)
11156 obj_.build(child_, gds_collector_=gds_collector_)
11157 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11158 MixedContainer.TypeNone, 'htmlonly', obj_)
11159 self.content_.append(obj_)
11160 if hasattr(self, 'add_htmlonly'):
11161 self.add_htmlonly(obj_.value)
11162 elif hasattr(self, 'set_htmlonly'):
11163 self.set_htmlonly(obj_.value)
11164 elif nodeName_ == 'manonly' and child_.text is not None:
11165 valuestr_ = child_.text
11166 valuestr_ = self.gds_parse_string(valuestr_, node, 'manonly')
11167 valuestr_ = self.gds_validate_string(valuestr_, node, 'manonly')
11168 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
11169 MixedContainer.TypeString, 'manonly', valuestr_)
11170 self.content_.append(obj_)
11171 self.manonly_nsprefix_ = child_.prefix
11172 elif nodeName_ == 'xmlonly' and child_.text is not None:
11173 valuestr_ = child_.text
11174 valuestr_ = self.gds_parse_string(valuestr_, node, 'xmlonly')
11175 valuestr_ = self.gds_validate_string(valuestr_, node, 'xmlonly')
11176 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
11177 MixedContainer.TypeString, 'xmlonly', valuestr_)
11178 self.content_.append(obj_)
11179 self.xmlonly_nsprefix_ = child_.prefix
11180 elif nodeName_ == 'rtfonly' and child_.text is not None:
11181 valuestr_ = child_.text
11182 valuestr_ = self.gds_parse_string(valuestr_, node, 'rtfonly')
11183 valuestr_ = self.gds_validate_string(valuestr_, node, 'rtfonly')
11184 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
11185 MixedContainer.TypeString, 'rtfonly', valuestr_)
11186 self.content_.append(obj_)
11187 self.rtfonly_nsprefix_ = child_.prefix
11188 elif nodeName_ == 'latexonly' and child_.text is not None:
11189 valuestr_ = child_.text
11190 valuestr_ = self.gds_parse_string(valuestr_, node, 'latexonly')
11191 valuestr_ = self.gds_validate_string(valuestr_, node, 'latexonly')
11192 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
11193 MixedContainer.TypeString, 'latexonly', valuestr_)
11194 self.content_.append(obj_)
11195 self.latexonly_nsprefix_ = child_.prefix
11196 elif nodeName_ == 'docbookonly' and child_.text is not None:
11197 valuestr_ = child_.text
11198 valuestr_ = self.gds_parse_string(valuestr_, node, 'docbookonly')
11199 valuestr_ = self.gds_validate_string(valuestr_, node, 'docbookonly')
11200 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
11201 MixedContainer.TypeString, 'docbookonly', valuestr_)
11202 self.content_.append(obj_)
11203 self.docbookonly_nsprefix_ = child_.prefix
11204 elif nodeName_ == 'image':
11205 obj_ = docImageType.factory(parent_object_=self)
11206 obj_.build(child_, gds_collector_=gds_collector_)
11207 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11208 MixedContainer.TypeNone, 'image', obj_)
11209 self.content_.append(obj_)
11210 if hasattr(self, 'add_image'):
11211 self.add_image(obj_.value)
11212 elif hasattr(self, 'set_image'):
11213 self.set_image(obj_.value)
11214 elif nodeName_ == 'dot':
11215 obj_ = docDotMscType.factory(parent_object_=self)
11216 obj_.build(child_, gds_collector_=gds_collector_)
11217 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11218 MixedContainer.TypeNone, 'dot', obj_)
11219 self.content_.append(obj_)
11220 if hasattr(self, 'add_dot'):
11221 self.add_dot(obj_.value)
11222 elif hasattr(self, 'set_dot'):
11223 self.set_dot(obj_.value)
11224 elif nodeName_ == 'msc':
11225 obj_ = docDotMscType.factory(parent_object_=self)
11226 obj_.build(child_, gds_collector_=gds_collector_)
11227 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11228 MixedContainer.TypeNone, 'msc', obj_)
11229 self.content_.append(obj_)
11230 if hasattr(self, 'add_msc'):
11231 self.add_msc(obj_.value)
11232 elif hasattr(self, 'set_msc'):
11233 self.set_msc(obj_.value)
11234 elif nodeName_ == 'plantuml':
11235 obj_ = docPlantumlType.factory(parent_object_=self)
11236 obj_.build(child_, gds_collector_=gds_collector_)
11237 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11238 MixedContainer.TypeNone, 'plantuml', obj_)
11239 self.content_.append(obj_)
11240 if hasattr(self, 'add_plantuml'):
11241 self.add_plantuml(obj_.value)
11242 elif hasattr(self, 'set_plantuml'):
11243 self.set_plantuml(obj_.value)
11244 elif nodeName_ == 'anchor':
11245 obj_ = docAnchorType.factory(parent_object_=self)
11246 obj_.build(child_, gds_collector_=gds_collector_)
11247 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11248 MixedContainer.TypeNone, 'anchor', obj_)
11249 self.content_.append(obj_)
11250 if hasattr(self, 'add_anchor'):
11251 self.add_anchor(obj_.value)
11252 elif hasattr(self, 'set_anchor'):
11253 self.set_anchor(obj_.value)
11254 elif nodeName_ == 'formula':
11255 obj_ = docFormulaType.factory(parent_object_=self)
11256 obj_.build(child_, gds_collector_=gds_collector_)
11257 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11258 MixedContainer.TypeNone, 'formula', obj_)
11259 self.content_.append(obj_)
11260 if hasattr(self, 'add_formula'):
11261 self.add_formula(obj_.value)
11262 elif hasattr(self, 'set_formula'):
11263 self.set_formula(obj_.value)
11264 elif nodeName_ == 'ref':
11265 obj_ = docRefTextType.factory(parent_object_=self)
11266 obj_.build(child_, gds_collector_=gds_collector_)
11267 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11268 MixedContainer.TypeNone, 'ref', obj_)
11269 self.content_.append(obj_)
11270 if hasattr(self, 'add_ref'):
11271 self.add_ref(obj_.value)
11272 elif hasattr(self, 'set_ref'):
11273 self.set_ref(obj_.value)
11274 elif nodeName_ == 'emoji':
11275 obj_ = docEmojiType.factory(parent_object_=self)
11276 obj_.build(child_, gds_collector_=gds_collector_)
11277 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11278 MixedContainer.TypeNone, 'emoji', obj_)
11279 self.content_.append(obj_)
11280 if hasattr(self, 'add_emoji'):
11281 self.add_emoji(obj_.value)
11282 elif hasattr(self, 'set_emoji'):
11283 self.set_emoji(obj_.value)
11284 elif nodeName_ == 'linebreak':
11285 obj_ = docEmptyType.factory(parent_object_=self)
11286 obj_.build(child_, gds_collector_=gds_collector_)
11287 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
11288 MixedContainer.TypeNone, 'linebreak', obj_)
11289 self.content_.append(obj_)
11290 if hasattr(self, 'add_linebreak'):
11291 self.add_linebreak(obj_.value)
11292 elif hasattr(self, 'set_linebreak'):
11293 self.set_linebreak(obj_.value)
11294 if not fromsubclass_ and child_.tail is not None:
11295 obj_ = self.mixedclass_(MixedContainer.CategoryText,
11296 MixedContainer.TypeNone, '', child_.tail)
11297 self.content_.append(obj_)
11298# end class docSummaryType
11299
11300
11301class docParaType(GeneratedsSuper):
11302 __hash__ = GeneratedsSuper.__hash__
11303 subclass = None
11304 superclass = None
11305 def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, hruler=None, preformatted=None, programlisting=None, verbatim=None, javadocliteral=None, javadoccode=None, indexentry=None, orderedlist=None, itemizedlist=None, simplesect=None, title=None, variablelist=None, table=None, heading=None, dotfile=None, mscfile=None, diafile=None, toclist=None, language=None, parameterlist=None, xrefsect=None, copydoc=None, details=None, blockquote=None, parblock=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
11306 self.gds_collector_ = gds_collector_
11307 self.gds_elementtree_node_ = None
11308 self.original_tagname_ = None
11309 self.parent_object_ = kwargs_.get('parent_object_')
11310 self.ns_prefix_ = None
11311 if ulink is None:
11312 self.ulink = []
11313 else:
11314 self.ulink = ulink
11315 self.ulink_nsprefix_ = None
11316 if bold is None:
11317 self.bold = []
11318 else:
11319 self.bold = bold
11320 self.bold_nsprefix_ = None
11321 if s is None:
11322 self.s = []
11323 else:
11324 self.s = s
11325 self.s_nsprefix_ = None
11326 if strike is None:
11327 self.strike = []
11328 else:
11329 self.strike = strike
11330 self.strike_nsprefix_ = None
11331 if underline is None:
11332 self.underline = []
11333 else:
11334 self.underline = underline
11335 self.underline_nsprefix_ = None
11336 if emphasis is None:
11337 self.emphasis = []
11338 else:
11339 self.emphasis = emphasis
11340 self.emphasis_nsprefix_ = None
11341 if computeroutput is None:
11342 self.computeroutput = []
11343 else:
11344 self.computeroutput = computeroutput
11345 self.computeroutput_nsprefix_ = None
11346 if subscript is None:
11347 self.subscript = []
11348 else:
11349 self.subscript = subscript
11350 self.subscript_nsprefix_ = None
11351 if superscript is None:
11352 self.superscript = []
11353 else:
11354 self.superscript = superscript
11355 self.superscript_nsprefix_ = None
11356 if center is None:
11357 self.center = []
11358 else:
11359 self.center = center
11360 self.center_nsprefix_ = None
11361 if small is None:
11362 self.small = []
11363 else:
11364 self.small = small
11365 self.small_nsprefix_ = None
11366 if cite is None:
11367 self.cite = []
11368 else:
11369 self.cite = cite
11370 self.cite_nsprefix_ = None
11371 if del_ is None:
11372 self.del_ = []
11373 else:
11374 self.del_ = del_
11375 self.del__nsprefix_ = None
11376 if ins is None:
11377 self.ins = []
11378 else:
11379 self.ins = ins
11380 self.ins_nsprefix_ = None
11381 if htmlonly is None:
11382 self.htmlonly = []
11383 else:
11384 self.htmlonly = htmlonly
11385 self.htmlonly_nsprefix_ = None
11386 if manonly is None:
11387 self.manonly = []
11388 else:
11389 self.manonly = manonly
11390 self.manonly_nsprefix_ = None
11391 if xmlonly is None:
11392 self.xmlonly = []
11393 else:
11394 self.xmlonly = xmlonly
11395 self.xmlonly_nsprefix_ = None
11396 if rtfonly is None:
11397 self.rtfonly = []
11398 else:
11399 self.rtfonly = rtfonly
11400 self.rtfonly_nsprefix_ = None
11401 if latexonly is None:
11402 self.latexonly = []
11403 else:
11404 self.latexonly = latexonly
11405 self.latexonly_nsprefix_ = None
11406 if docbookonly is None:
11407 self.docbookonly = []
11408 else:
11409 self.docbookonly = docbookonly
11410 self.docbookonly_nsprefix_ = None
11411 if image is None:
11412 self.image = []
11413 else:
11414 self.image = image
11415 self.image_nsprefix_ = None
11416 if dot is None:
11417 self.dot = []
11418 else:
11419 self.dot = dot
11420 self.dot_nsprefix_ = None
11421 if msc is None:
11422 self.msc = []
11423 else:
11424 self.msc = msc
11425 self.msc_nsprefix_ = None
11426 if plantuml is None:
11427 self.plantuml = []
11428 else:
11429 self.plantuml = plantuml
11430 self.plantuml_nsprefix_ = None
11431 if anchor is None:
11432 self.anchor = []
11433 else:
11434 self.anchor = anchor
11435 self.anchor_nsprefix_ = None
11436 if formula is None:
11437 self.formula = []
11438 else:
11439 self.formula = formula
11440 self.formula_nsprefix_ = None
11441 if ref is None:
11442 self.ref = []
11443 else:
11444 self.ref = ref
11445 self.ref_nsprefix_ = None
11446 if emoji is None:
11447 self.emoji = []
11448 else:
11449 self.emoji = emoji
11450 self.emoji_nsprefix_ = None
11451 if linebreak is None:
11452 self.linebreak = []
11453 else:
11454 self.linebreak = linebreak
11455 self.linebreak_nsprefix_ = None
11456 if hruler is None:
11457 self.hruler = []
11458 else:
11459 self.hruler = hruler
11460 self.hruler_nsprefix_ = None
11461 if preformatted is None:
11462 self.preformatted = []
11463 else:
11464 self.preformatted = preformatted
11465 self.preformatted_nsprefix_ = None
11466 if programlisting is None:
11467 self.programlisting = []
11468 else:
11469 self.programlisting = programlisting
11470 self.programlisting_nsprefix_ = None
11471 if verbatim is None:
11472 self.verbatim = []
11473 else:
11474 self.verbatim = verbatim
11475 self.verbatim_nsprefix_ = None
11476 if javadocliteral is None:
11477 self.javadocliteral = []
11478 else:
11479 self.javadocliteral = javadocliteral
11480 self.javadocliteral_nsprefix_ = None
11481 if javadoccode is None:
11482 self.javadoccode = []
11483 else:
11484 self.javadoccode = javadoccode
11485 self.javadoccode_nsprefix_ = None
11486 if indexentry is None:
11487 self.indexentry = []
11488 else:
11489 self.indexentry = indexentry
11490 self.indexentry_nsprefix_ = None
11491 if orderedlist is None:
11492 self.orderedlist = []
11493 else:
11494 self.orderedlist = orderedlist
11495 self.orderedlist_nsprefix_ = None
11496 if itemizedlist is None:
11497 self.itemizedlist = []
11498 else:
11499 self.itemizedlist = itemizedlist
11500 self.itemizedlist_nsprefix_ = None
11501 if simplesect is None:
11502 self.simplesect = []
11503 else:
11504 self.simplesect = simplesect
11505 self.simplesect_nsprefix_ = None
11506 if title is None:
11507 self.title = []
11508 else:
11509 self.title = title
11510 self.title_nsprefix_ = None
11511 if variablelist is None:
11512 self.variablelist = []
11513 else:
11514 self.variablelist = variablelist
11515 self.variablelist_nsprefix_ = None
11516 if table is None:
11517 self.table = []
11518 else:
11519 self.table = table
11520 self.table_nsprefix_ = None
11521 if heading is None:
11522 self.heading = []
11523 else:
11524 self.heading = heading
11525 self.heading_nsprefix_ = None
11526 if dotfile is None:
11527 self.dotfile = []
11528 else:
11529 self.dotfile = dotfile
11530 self.dotfile_nsprefix_ = None
11531 if mscfile is None:
11532 self.mscfile = []
11533 else:
11534 self.mscfile = mscfile
11535 self.mscfile_nsprefix_ = None
11536 if diafile is None:
11537 self.diafile = []
11538 else:
11539 self.diafile = diafile
11540 self.diafile_nsprefix_ = None
11541 if toclist is None:
11542 self.toclist = []
11543 else:
11544 self.toclist = toclist
11545 self.toclist_nsprefix_ = None
11546 if language is None:
11547 self.language = []
11548 else:
11549 self.language = language
11550 self.language_nsprefix_ = None
11551 if parameterlist is None:
11552 self.parameterlist = []
11553 else:
11554 self.parameterlist = parameterlist
11555 self.parameterlist_nsprefix_ = None
11556 if xrefsect is None:
11557 self.xrefsect = []
11558 else:
11559 self.xrefsect = xrefsect
11560 self.xrefsect_nsprefix_ = None
11561 if copydoc is None:
11562 self.copydoc = []
11563 else:
11564 self.copydoc = copydoc
11565 self.copydoc_nsprefix_ = None
11566 if details is None:
11567 self.details = []
11568 else:
11569 self.details = details
11570 self.details_nsprefix_ = None
11571 if blockquote is None:
11572 self.blockquote = []
11573 else:
11574 self.blockquote = blockquote
11575 self.blockquote_nsprefix_ = None
11576 if parblock is None:
11577 self.parblock = []
11578 else:
11579 self.parblock = parblock
11580 self.parblock_nsprefix_ = None
11581 self.valueOf_ = valueOf_
11582 if mixedclass_ is None:
11583 self.mixedclass_ = MixedContainer
11584 else:
11585 self.mixedclass_ = mixedclass_
11586 if content_ is None:
11587 self.content_ = []
11588 else:
11589 self.content_ = content_
11590 self.valueOf_ = valueOf_
11591 def factory(*args_, **kwargs_):
11592 if CurrentSubclassModule_ is not None:
11593 subclass = getSubclassFromModule_(
11594 CurrentSubclassModule_, docParaType)
11595 if subclass is not None:
11596 return subclass(*args_, **kwargs_)
11597 if docParaType.subclass:
11598 return docParaType.subclass(*args_, **kwargs_)
11599 else:
11600 return docParaType(*args_, **kwargs_)
11601 factory = staticmethod(factory)
11603 return self.ns_prefix_
11604 def set_ns_prefix_(self, ns_prefix):
11605 self.ns_prefix_ = ns_prefix
11606 def get_ulink(self):
11607 return self.ulink
11608 def set_ulink(self, ulink):
11609 self.ulink = ulink
11610 def add_ulink(self, value):
11611 self.ulink.append(value)
11612 def insert_ulink_at(self, index, value):
11613 self.ulink.insert(index, value)
11614 def replace_ulink_at(self, index, value):
11615 self.ulink[index] = value
11616 def get_bold(self):
11617 return self.bold
11618 def set_bold(self, bold):
11619 self.bold = bold
11620 def add_bold(self, value):
11621 self.bold.append(value)
11622 def insert_bold_at(self, index, value):
11623 self.bold.insert(index, value)
11624 def replace_bold_at(self, index, value):
11625 self.bold[index] = value
11626 def get_s(self):
11627 return self.s
11628 def set_s(self, s):
11629 self.s = s
11630 def add_s(self, value):
11631 self.s.append(value)
11632 def insert_s_at(self, index, value):
11633 self.s.insert(index, value)
11634 def replace_s_at(self, index, value):
11635 self.s[index] = value
11636 def get_strike(self):
11637 return self.strike
11638 def set_strike(self, strike):
11639 self.strike = strike
11640 def add_strike(self, value):
11641 self.strike.append(value)
11642 def insert_strike_at(self, index, value):
11643 self.strike.insert(index, value)
11644 def replace_strike_at(self, index, value):
11645 self.strike[index] = value
11646 def get_underline(self):
11647 return self.underline
11648 def set_underline(self, underline):
11649 self.underline = underline
11650 def add_underline(self, value):
11651 self.underline.append(value)
11652 def insert_underline_at(self, index, value):
11653 self.underline.insert(index, value)
11654 def replace_underline_at(self, index, value):
11655 self.underline[index] = value
11656 def get_emphasis(self):
11657 return self.emphasis
11658 def set_emphasis(self, emphasis):
11659 self.emphasis = emphasis
11660 def add_emphasis(self, value):
11661 self.emphasis.append(value)
11662 def insert_emphasis_at(self, index, value):
11663 self.emphasis.insert(index, value)
11664 def replace_emphasis_at(self, index, value):
11665 self.emphasis[index] = value
11667 return self.computeroutput
11668 def set_computeroutput(self, computeroutput):
11669 self.computeroutput = computeroutput
11670 def add_computeroutput(self, value):
11671 self.computeroutput.append(value)
11672 def insert_computeroutput_at(self, index, value):
11673 self.computeroutput.insert(index, value)
11674 def replace_computeroutput_at(self, index, value):
11675 self.computeroutput[index] = value
11676 def get_subscript(self):
11677 return self.subscript
11678 def set_subscript(self, subscript):
11679 self.subscript = subscript
11680 def add_subscript(self, value):
11681 self.subscript.append(value)
11682 def insert_subscript_at(self, index, value):
11683 self.subscript.insert(index, value)
11684 def replace_subscript_at(self, index, value):
11685 self.subscript[index] = value
11687 return self.superscript
11688 def set_superscript(self, superscript):
11689 self.superscript = superscript
11690 def add_superscript(self, value):
11691 self.superscript.append(value)
11692 def insert_superscript_at(self, index, value):
11693 self.superscript.insert(index, value)
11694 def replace_superscript_at(self, index, value):
11695 self.superscript[index] = value
11696 def get_center(self):
11697 return self.center
11698 def set_center(self, center):
11699 self.center = center
11700 def add_center(self, value):
11701 self.center.append(value)
11702 def insert_center_at(self, index, value):
11703 self.center.insert(index, value)
11704 def replace_center_at(self, index, value):
11705 self.center[index] = value
11706 def get_small(self):
11707 return self.small
11708 def set_small(self, small):
11709 self.small = small
11710 def add_small(self, value):
11711 self.small.append(value)
11712 def insert_small_at(self, index, value):
11713 self.small.insert(index, value)
11714 def replace_small_at(self, index, value):
11715 self.small[index] = value
11716 def get_cite(self):
11717 return self.cite
11718 def set_cite(self, cite):
11719 self.cite = cite
11720 def add_cite(self, value):
11721 self.cite.append(value)
11722 def insert_cite_at(self, index, value):
11723 self.cite.insert(index, value)
11724 def replace_cite_at(self, index, value):
11725 self.cite[index] = value
11726 def get_del(self):
11727 return self.del_
11728 def set_del(self, del_):
11729 self.del_ = del_
11730 def add_del(self, value):
11731 self.del_.append(value)
11732 def insert_del_at(self, index, value):
11733 self.del_.insert(index, value)
11734 def replace_del_at(self, index, value):
11735 self.del_[index] = value
11736 def get_ins(self):
11737 return self.ins
11738 def set_ins(self, ins):
11739 self.ins = ins
11740 def add_ins(self, value):
11741 self.ins.append(value)
11742 def insert_ins_at(self, index, value):
11743 self.ins.insert(index, value)
11744 def replace_ins_at(self, index, value):
11745 self.ins[index] = value
11746 def get_htmlonly(self):
11747 return self.htmlonly
11748 def set_htmlonly(self, htmlonly):
11749 self.htmlonly = htmlonly
11750 def add_htmlonly(self, value):
11751 self.htmlonly.append(value)
11752 def insert_htmlonly_at(self, index, value):
11753 self.htmlonly.insert(index, value)
11754 def replace_htmlonly_at(self, index, value):
11755 self.htmlonly[index] = value
11756 def get_manonly(self):
11757 return self.manonly
11758 def set_manonly(self, manonly):
11759 self.manonly = manonly
11760 def add_manonly(self, value):
11761 self.manonly.append(value)
11762 def insert_manonly_at(self, index, value):
11763 self.manonly.insert(index, value)
11764 def replace_manonly_at(self, index, value):
11765 self.manonly[index] = value
11766 def get_xmlonly(self):
11767 return self.xmlonly
11768 def set_xmlonly(self, xmlonly):
11769 self.xmlonly = xmlonly
11770 def add_xmlonly(self, value):
11771 self.xmlonly.append(value)
11772 def insert_xmlonly_at(self, index, value):
11773 self.xmlonly.insert(index, value)
11774 def replace_xmlonly_at(self, index, value):
11775 self.xmlonly[index] = value
11776 def get_rtfonly(self):
11777 return self.rtfonly
11778 def set_rtfonly(self, rtfonly):
11779 self.rtfonly = rtfonly
11780 def add_rtfonly(self, value):
11781 self.rtfonly.append(value)
11782 def insert_rtfonly_at(self, index, value):
11783 self.rtfonly.insert(index, value)
11784 def replace_rtfonly_at(self, index, value):
11785 self.rtfonly[index] = value
11786 def get_latexonly(self):
11787 return self.latexonly
11788 def set_latexonly(self, latexonly):
11789 self.latexonly = latexonly
11790 def add_latexonly(self, value):
11791 self.latexonly.append(value)
11792 def insert_latexonly_at(self, index, value):
11793 self.latexonly.insert(index, value)
11794 def replace_latexonly_at(self, index, value):
11795 self.latexonly[index] = value
11797 return self.docbookonly
11798 def set_docbookonly(self, docbookonly):
11799 self.docbookonly = docbookonly
11800 def add_docbookonly(self, value):
11801 self.docbookonly.append(value)
11802 def insert_docbookonly_at(self, index, value):
11803 self.docbookonly.insert(index, value)
11804 def replace_docbookonly_at(self, index, value):
11805 self.docbookonly[index] = value
11806 def get_image(self):
11807 return self.image
11808 def set_image(self, image):
11809 self.image = image
11810 def add_image(self, value):
11811 self.image.append(value)
11812 def insert_image_at(self, index, value):
11813 self.image.insert(index, value)
11814 def replace_image_at(self, index, value):
11815 self.image[index] = value
11816 def get_dot(self):
11817 return self.dot
11818 def set_dot(self, dot):
11819 self.dot = dot
11820 def add_dot(self, value):
11821 self.dot.append(value)
11822 def insert_dot_at(self, index, value):
11823 self.dot.insert(index, value)
11824 def replace_dot_at(self, index, value):
11825 self.dot[index] = value
11826 def get_msc(self):
11827 return self.msc
11828 def set_msc(self, msc):
11829 self.msc = msc
11830 def add_msc(self, value):
11831 self.msc.append(value)
11832 def insert_msc_at(self, index, value):
11833 self.msc.insert(index, value)
11834 def replace_msc_at(self, index, value):
11835 self.msc[index] = value
11836 def get_plantuml(self):
11837 return self.plantuml
11838 def set_plantuml(self, plantuml):
11839 self.plantuml = plantuml
11840 def add_plantuml(self, value):
11841 self.plantuml.append(value)
11842 def insert_plantuml_at(self, index, value):
11843 self.plantuml.insert(index, value)
11844 def replace_plantuml_at(self, index, value):
11845 self.plantuml[index] = value
11846 def get_anchor(self):
11847 return self.anchor
11848 def set_anchor(self, anchor):
11849 self.anchor = anchor
11850 def add_anchor(self, value):
11851 self.anchor.append(value)
11852 def insert_anchor_at(self, index, value):
11853 self.anchor.insert(index, value)
11854 def replace_anchor_at(self, index, value):
11855 self.anchor[index] = value
11856 def get_formula(self):
11857 return self.formula
11858 def set_formula(self, formula):
11859 self.formula = formula
11860 def add_formula(self, value):
11861 self.formula.append(value)
11862 def insert_formula_at(self, index, value):
11863 self.formula.insert(index, value)
11864 def replace_formula_at(self, index, value):
11865 self.formula[index] = value
11866 def get_ref(self):
11867 return self.ref
11868 def set_ref(self, ref):
11869 self.ref = ref
11870 def add_ref(self, value):
11871 self.ref.append(value)
11872 def insert_ref_at(self, index, value):
11873 self.ref.insert(index, value)
11874 def replace_ref_at(self, index, value):
11875 self.ref[index] = value
11876 def get_emoji(self):
11877 return self.emoji
11878 def set_emoji(self, emoji):
11879 self.emoji = emoji
11880 def add_emoji(self, value):
11881 self.emoji.append(value)
11882 def insert_emoji_at(self, index, value):
11883 self.emoji.insert(index, value)
11884 def replace_emoji_at(self, index, value):
11885 self.emoji[index] = value
11886 def get_linebreak(self):
11887 return self.linebreak
11888 def set_linebreak(self, linebreak):
11889 self.linebreak = linebreak
11890 def add_linebreak(self, value):
11891 self.linebreak.append(value)
11892 def insert_linebreak_at(self, index, value):
11893 self.linebreak.insert(index, value)
11894 def replace_linebreak_at(self, index, value):
11895 self.linebreak[index] = value
11896 def get_hruler(self):
11897 return self.hruler
11898 def set_hruler(self, hruler):
11899 self.hruler = hruler
11900 def add_hruler(self, value):
11901 self.hruler.append(value)
11902 def insert_hruler_at(self, index, value):
11903 self.hruler.insert(index, value)
11904 def replace_hruler_at(self, index, value):
11905 self.hruler[index] = value
11907 return self.preformatted
11908 def set_preformatted(self, preformatted):
11909 self.preformatted = preformatted
11910 def add_preformatted(self, value):
11911 self.preformatted.append(value)
11912 def insert_preformatted_at(self, index, value):
11913 self.preformatted.insert(index, value)
11914 def replace_preformatted_at(self, index, value):
11915 self.preformatted[index] = value
11917 return self.programlisting
11918 def set_programlisting(self, programlisting):
11919 self.programlisting = programlisting
11920 def add_programlisting(self, value):
11921 self.programlisting.append(value)
11922 def insert_programlisting_at(self, index, value):
11923 self.programlisting.insert(index, value)
11924 def replace_programlisting_at(self, index, value):
11925 self.programlisting[index] = value
11926 def get_verbatim(self):
11927 return self.verbatim
11928 def set_verbatim(self, verbatim):
11929 self.verbatim = verbatim
11930 def add_verbatim(self, value):
11931 self.verbatim.append(value)
11932 def insert_verbatim_at(self, index, value):
11933 self.verbatim.insert(index, value)
11934 def replace_verbatim_at(self, index, value):
11935 self.verbatim[index] = value
11937 return self.javadocliteral
11938 def set_javadocliteral(self, javadocliteral):
11939 self.javadocliteral = javadocliteral
11940 def add_javadocliteral(self, value):
11941 self.javadocliteral.append(value)
11942 def insert_javadocliteral_at(self, index, value):
11943 self.javadocliteral.insert(index, value)
11944 def replace_javadocliteral_at(self, index, value):
11945 self.javadocliteral[index] = value
11947 return self.javadoccode
11948 def set_javadoccode(self, javadoccode):
11949 self.javadoccode = javadoccode
11950 def add_javadoccode(self, value):
11951 self.javadoccode.append(value)
11952 def insert_javadoccode_at(self, index, value):
11953 self.javadoccode.insert(index, value)
11954 def replace_javadoccode_at(self, index, value):
11955 self.javadoccode[index] = value
11957 return self.indexentry
11958 def set_indexentry(self, indexentry):
11959 self.indexentry = indexentry
11960 def add_indexentry(self, value):
11961 self.indexentry.append(value)
11962 def insert_indexentry_at(self, index, value):
11963 self.indexentry.insert(index, value)
11964 def replace_indexentry_at(self, index, value):
11965 self.indexentry[index] = value
11967 return self.orderedlist
11968 def set_orderedlist(self, orderedlist):
11969 self.orderedlist = orderedlist
11970 def add_orderedlist(self, value):
11971 self.orderedlist.append(value)
11972 def insert_orderedlist_at(self, index, value):
11973 self.orderedlist.insert(index, value)
11974 def replace_orderedlist_at(self, index, value):
11975 self.orderedlist[index] = value
11977 return self.itemizedlist
11978 def set_itemizedlist(self, itemizedlist):
11979 self.itemizedlist = itemizedlist
11980 def add_itemizedlist(self, value):
11981 self.itemizedlist.append(value)
11982 def insert_itemizedlist_at(self, index, value):
11983 self.itemizedlist.insert(index, value)
11984 def replace_itemizedlist_at(self, index, value):
11985 self.itemizedlist[index] = value
11987 return self.simplesect
11988 def set_simplesect(self, simplesect):
11989 self.simplesect = simplesect
11990 def add_simplesect(self, value):
11991 self.simplesect.append(value)
11992 def insert_simplesect_at(self, index, value):
11993 self.simplesect.insert(index, value)
11994 def replace_simplesect_at(self, index, value):
11995 self.simplesect[index] = value
11996 def get_title(self):
11997 return self.title
11998 def set_title(self, title):
11999 self.title = title
12000 def add_title(self, value):
12001 self.title.append(value)
12002 def insert_title_at(self, index, value):
12003 self.title.insert(index, value)
12004 def replace_title_at(self, index, value):
12005 self.title[index] = value
12007 return self.variablelist
12008 def set_variablelist(self, variablelist):
12009 self.variablelist = variablelist
12010 def add_variablelist(self, value):
12011 self.variablelist.append(value)
12012 def insert_variablelist_at(self, index, value):
12013 self.variablelist.insert(index, value)
12014 def replace_variablelist_at(self, index, value):
12015 self.variablelist[index] = value
12016 def get_table(self):
12017 return self.table
12018 def set_table(self, table):
12019 self.table = table
12020 def add_table(self, value):
12021 self.table.append(value)
12022 def insert_table_at(self, index, value):
12023 self.table.insert(index, value)
12024 def replace_table_at(self, index, value):
12025 self.table[index] = value
12026 def get_heading(self):
12027 return self.heading
12028 def set_heading(self, heading):
12029 self.heading = heading
12030 def add_heading(self, value):
12031 self.heading.append(value)
12032 def insert_heading_at(self, index, value):
12033 self.heading.insert(index, value)
12034 def replace_heading_at(self, index, value):
12035 self.heading[index] = value
12036 def get_dotfile(self):
12037 return self.dotfile
12038 def set_dotfile(self, dotfile):
12039 self.dotfile = dotfile
12040 def add_dotfile(self, value):
12041 self.dotfile.append(value)
12042 def insert_dotfile_at(self, index, value):
12043 self.dotfile.insert(index, value)
12044 def replace_dotfile_at(self, index, value):
12045 self.dotfile[index] = value
12046 def get_mscfile(self):
12047 return self.mscfile
12048 def set_mscfile(self, mscfile):
12049 self.mscfile = mscfile
12050 def add_mscfile(self, value):
12051 self.mscfile.append(value)
12052 def insert_mscfile_at(self, index, value):
12053 self.mscfile.insert(index, value)
12054 def replace_mscfile_at(self, index, value):
12055 self.mscfile[index] = value
12056 def get_diafile(self):
12057 return self.diafile
12058 def set_diafile(self, diafile):
12059 self.diafile = diafile
12060 def add_diafile(self, value):
12061 self.diafile.append(value)
12062 def insert_diafile_at(self, index, value):
12063 self.diafile.insert(index, value)
12064 def replace_diafile_at(self, index, value):
12065 self.diafile[index] = value
12066 def get_toclist(self):
12067 return self.toclist
12068 def set_toclist(self, toclist):
12069 self.toclist = toclist
12070 def add_toclist(self, value):
12071 self.toclist.append(value)
12072 def insert_toclist_at(self, index, value):
12073 self.toclist.insert(index, value)
12074 def replace_toclist_at(self, index, value):
12075 self.toclist[index] = value
12076 def get_language(self):
12077 return self.language
12078 def set_language(self, language):
12079 self.language = language
12080 def add_language(self, value):
12081 self.language.append(value)
12082 def insert_language_at(self, index, value):
12083 self.language.insert(index, value)
12084 def replace_language_at(self, index, value):
12085 self.language[index] = value
12087 return self.parameterlist
12088 def set_parameterlist(self, parameterlist):
12089 self.parameterlist = parameterlist
12090 def add_parameterlist(self, value):
12091 self.parameterlist.append(value)
12092 def insert_parameterlist_at(self, index, value):
12093 self.parameterlist.insert(index, value)
12094 def replace_parameterlist_at(self, index, value):
12095 self.parameterlist[index] = value
12096 def get_xrefsect(self):
12097 return self.xrefsect
12098 def set_xrefsect(self, xrefsect):
12099 self.xrefsect = xrefsect
12100 def add_xrefsect(self, value):
12101 self.xrefsect.append(value)
12102 def insert_xrefsect_at(self, index, value):
12103 self.xrefsect.insert(index, value)
12104 def replace_xrefsect_at(self, index, value):
12105 self.xrefsect[index] = value
12106 def get_copydoc(self):
12107 return self.copydoc
12108 def set_copydoc(self, copydoc):
12109 self.copydoc = copydoc
12110 def add_copydoc(self, value):
12111 self.copydoc.append(value)
12112 def insert_copydoc_at(self, index, value):
12113 self.copydoc.insert(index, value)
12114 def replace_copydoc_at(self, index, value):
12115 self.copydoc[index] = value
12116 def get_details(self):
12117 return self.details
12118 def set_details(self, details):
12119 self.details = details
12120 def add_details(self, value):
12121 self.details.append(value)
12122 def insert_details_at(self, index, value):
12123 self.details.insert(index, value)
12124 def replace_details_at(self, index, value):
12125 self.details[index] = value
12127 return self.blockquote
12128 def set_blockquote(self, blockquote):
12129 self.blockquote = blockquote
12130 def add_blockquote(self, value):
12131 self.blockquote.append(value)
12132 def insert_blockquote_at(self, index, value):
12133 self.blockquote.insert(index, value)
12134 def replace_blockquote_at(self, index, value):
12135 self.blockquote[index] = value
12136 def get_parblock(self):
12137 return self.parblock
12138 def set_parblock(self, parblock):
12139 self.parblock = parblock
12140 def add_parblock(self, value):
12141 self.parblock.append(value)
12142 def insert_parblock_at(self, index, value):
12143 self.parblock.insert(index, value)
12144 def replace_parblock_at(self, index, value):
12145 self.parblock[index] = value
12146 def get_valueOf_(self): return self.valueOf_
12147 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
12148 def hasContent_(self):
12149 if (
12150 self.ulink or
12151 self.bold or
12152 self.s or
12153 self.strike or
12154 self.underline or
12155 self.emphasis or
12156 self.computeroutput or
12157 self.subscript or
12158 self.superscript or
12159 self.center or
12160 self.small or
12161 self.cite or
12162 self.del_ or
12163 self.ins or
12164 self.htmlonly or
12165 self.manonly or
12166 self.xmlonly or
12167 self.rtfonly or
12168 self.latexonly or
12169 self.docbookonly or
12170 self.image or
12171 self.dot or
12172 self.msc or
12173 self.plantuml or
12174 self.anchor or
12175 self.formula or
12176 self.ref or
12177 self.emoji or
12178 self.linebreak or
12179 self.hruler or
12180 self.preformatted or
12181 self.programlisting or
12182 self.verbatim or
12183 self.javadocliteral or
12184 self.javadoccode or
12185 self.indexentry or
12186 self.orderedlist or
12187 self.itemizedlist or
12188 self.simplesect or
12189 self.title or
12190 self.variablelist or
12191 self.table or
12192 self.heading or
12193 self.dotfile or
12194 self.mscfile or
12195 self.diafile or
12196 self.toclist or
12197 self.language or
12198 self.parameterlist or
12199 self.xrefsect or
12200 self.copydoc or
12201 self.details or
12202 self.blockquote or
12203 self.parblock or
12204 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
12205 self.content_
12206 ):
12207 return True
12208 else:
12209 return False
12210 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParaType', pretty_print=True):
12211 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParaType')
12212 if imported_ns_def_ is not None:
12213 namespacedef_ = imported_ns_def_
12214 if pretty_print:
12215 eol_ = '\n'
12216 else:
12217 eol_ = ''
12218 if self.original_tagname_ is not None and name_ == 'docParaType':
12219 name_ = self.original_tagname_
12220 if UseCapturedNS_ and self.ns_prefix_:
12221 namespaceprefix_ = self.ns_prefix_ + ':'
12222 showIndent(outfile, level, pretty_print)
12223 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
12224 already_processed = set()
12225 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParaType')
12226 if self.hasContent_hasContent_():
12227 outfile.write('>%s' % (eol_, ))
12228 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParaType', pretty_print=pretty_print)
12229 showIndent(outfile, level, pretty_print)
12230 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
12231 else:
12232 outfile.write('/>%s' % (eol_, ))
12233 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParaType'):
12234 pass
12235 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParaType', fromsubclass_=False, pretty_print=True):
12236 if not fromsubclass_:
12237 for item_ in self.content_:
12238 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
12239 if pretty_print:
12240 eol_ = '\n'
12241 else:
12242 eol_ = ''
12243 for ulink_ in self.ulink:
12244 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
12245 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
12246 for bold_ in self.bold:
12247 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
12248 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
12249 for s_ in self.s:
12250 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
12251 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
12252 for strike_ in self.strike:
12253 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
12254 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
12255 for underline_ in self.underline:
12256 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
12257 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
12258 for emphasis_ in self.emphasis:
12259 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
12260 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
12261 for computeroutput_ in self.computeroutput:
12262 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
12263 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
12264 for subscript_ in self.subscript:
12265 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
12266 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
12267 for superscript_ in self.superscript:
12268 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
12269 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
12270 for center_ in self.center:
12271 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
12272 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
12273 for small_ in self.small:
12274 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
12275 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
12276 for cite_ in self.cite:
12277 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
12278 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
12279 for del_ in self.del_:
12280 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
12281 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
12282 for ins_ in self.ins:
12283 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
12284 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
12285 for htmlonly_ in self.htmlonly:
12286 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
12287 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
12288 for manonly_ in self.manonly:
12289 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
12290 showIndent(outfile, level, pretty_print)
12291 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
12292 for xmlonly_ in self.xmlonly:
12293 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
12294 showIndent(outfile, level, pretty_print)
12295 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
12296 for rtfonly_ in self.rtfonly:
12297 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
12298 showIndent(outfile, level, pretty_print)
12299 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
12300 for latexonly_ in self.latexonly:
12301 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
12302 showIndent(outfile, level, pretty_print)
12303 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
12304 for docbookonly_ in self.docbookonly:
12305 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
12306 showIndent(outfile, level, pretty_print)
12307 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
12308 for image_ in self.image:
12309 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
12310 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
12311 for dot_ in self.dot:
12312 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
12313 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
12314 for msc_ in self.msc:
12315 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
12316 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
12317 for plantuml_ in self.plantuml:
12318 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
12319 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
12320 for anchor_ in self.anchor:
12321 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
12322 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
12323 for formula_ in self.formula:
12324 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
12325 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
12326 for ref_ in self.ref:
12327 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
12328 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
12329 for emoji_ in self.emoji:
12330 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
12331 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
12332 for linebreak_ in self.linebreak:
12333 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
12334 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
12335 for hruler_ in self.hruler:
12336 namespaceprefix_ = self.hruler_nsprefix_ + ':' if (UseCapturedNS_ and self.hruler_nsprefix_) else ''
12337 hruler_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='hruler', pretty_print=pretty_print)
12338 for preformatted_ in self.preformatted:
12339 namespaceprefix_ = self.preformatted_nsprefix_ + ':' if (UseCapturedNS_ and self.preformatted_nsprefix_) else ''
12340 preformatted_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='preformatted', pretty_print=pretty_print)
12341 for programlisting_ in self.programlisting:
12342 namespaceprefix_ = self.programlisting_nsprefix_ + ':' if (UseCapturedNS_ and self.programlisting_nsprefix_) else ''
12343 programlisting_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='programlisting', pretty_print=pretty_print)
12344 for verbatim_ in self.verbatim:
12345 namespaceprefix_ = self.verbatim_nsprefix_ + ':' if (UseCapturedNS_ and self.verbatim_nsprefix_) else ''
12346 showIndent(outfile, level, pretty_print)
12347 outfile.write('<%sverbatim>%s</%sverbatim>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(verbatim_), input_name='verbatim')), namespaceprefix_ , eol_))
12348 for javadocliteral_ in self.javadocliteral:
12349 namespaceprefix_ = self.javadocliteral_nsprefix_ + ':' if (UseCapturedNS_ and self.javadocliteral_nsprefix_) else ''
12350 showIndent(outfile, level, pretty_print)
12351 outfile.write('<%sjavadocliteral>%s</%sjavadocliteral>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(javadocliteral_), input_name='javadocliteral')), namespaceprefix_ , eol_))
12352 for javadoccode_ in self.javadoccode:
12353 namespaceprefix_ = self.javadoccode_nsprefix_ + ':' if (UseCapturedNS_ and self.javadoccode_nsprefix_) else ''
12354 showIndent(outfile, level, pretty_print)
12355 outfile.write('<%sjavadoccode>%s</%sjavadoccode>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(javadoccode_), input_name='javadoccode')), namespaceprefix_ , eol_))
12356 for indexentry_ in self.indexentry:
12357 namespaceprefix_ = self.indexentry_nsprefix_ + ':' if (UseCapturedNS_ and self.indexentry_nsprefix_) else ''
12358 indexentry_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='indexentry', pretty_print=pretty_print)
12359 for orderedlist_ in self.orderedlist:
12360 namespaceprefix_ = self.orderedlist_nsprefix_ + ':' if (UseCapturedNS_ and self.orderedlist_nsprefix_) else ''
12361 orderedlist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='orderedlist', pretty_print=pretty_print)
12362 for itemizedlist_ in self.itemizedlist:
12363 namespaceprefix_ = self.itemizedlist_nsprefix_ + ':' if (UseCapturedNS_ and self.itemizedlist_nsprefix_) else ''
12364 itemizedlist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='itemizedlist', pretty_print=pretty_print)
12365 for simplesect_ in self.simplesect:
12366 namespaceprefix_ = self.simplesect_nsprefix_ + ':' if (UseCapturedNS_ and self.simplesect_nsprefix_) else ''
12367 simplesect_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='simplesect', pretty_print=pretty_print)
12368 for title_ in self.title:
12369 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
12370 title_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='title', pretty_print=pretty_print)
12371 for variablelist_ in self.variablelist:
12372 namespaceprefix_ = self.variablelist_nsprefix_ + ':' if (UseCapturedNS_ and self.variablelist_nsprefix_) else ''
12373 variablelist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='variablelist', pretty_print=pretty_print)
12374 for table_ in self.table:
12375 namespaceprefix_ = self.table_nsprefix_ + ':' if (UseCapturedNS_ and self.table_nsprefix_) else ''
12376 table_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='table', pretty_print=pretty_print)
12377 for heading_ in self.heading:
12378 namespaceprefix_ = self.heading_nsprefix_ + ':' if (UseCapturedNS_ and self.heading_nsprefix_) else ''
12379 heading_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='heading', pretty_print=pretty_print)
12380 for dotfile_ in self.dotfile:
12381 namespaceprefix_ = self.dotfile_nsprefix_ + ':' if (UseCapturedNS_ and self.dotfile_nsprefix_) else ''
12382 dotfile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dotfile', pretty_print=pretty_print)
12383 for mscfile_ in self.mscfile:
12384 namespaceprefix_ = self.mscfile_nsprefix_ + ':' if (UseCapturedNS_ and self.mscfile_nsprefix_) else ''
12385 mscfile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='mscfile', pretty_print=pretty_print)
12386 for diafile_ in self.diafile:
12387 namespaceprefix_ = self.diafile_nsprefix_ + ':' if (UseCapturedNS_ and self.diafile_nsprefix_) else ''
12388 diafile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='diafile', pretty_print=pretty_print)
12389 for toclist_ in self.toclist:
12390 namespaceprefix_ = self.toclist_nsprefix_ + ':' if (UseCapturedNS_ and self.toclist_nsprefix_) else ''
12391 toclist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='toclist', pretty_print=pretty_print)
12392 for language_ in self.language:
12393 namespaceprefix_ = self.language_nsprefix_ + ':' if (UseCapturedNS_ and self.language_nsprefix_) else ''
12394 language_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='language', pretty_print=pretty_print)
12395 for parameterlist_ in self.parameterlist:
12396 namespaceprefix_ = self.parameterlist_nsprefix_ + ':' if (UseCapturedNS_ and self.parameterlist_nsprefix_) else ''
12397 parameterlist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parameterlist', pretty_print=pretty_print)
12398 for xrefsect_ in self.xrefsect:
12399 namespaceprefix_ = self.xrefsect_nsprefix_ + ':' if (UseCapturedNS_ and self.xrefsect_nsprefix_) else ''
12400 xrefsect_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='xrefsect', pretty_print=pretty_print)
12401 for copydoc_ in self.copydoc:
12402 namespaceprefix_ = self.copydoc_nsprefix_ + ':' if (UseCapturedNS_ and self.copydoc_nsprefix_) else ''
12403 copydoc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='copydoc', pretty_print=pretty_print)
12404 for details_ in self.details:
12405 namespaceprefix_ = self.details_nsprefix_ + ':' if (UseCapturedNS_ and self.details_nsprefix_) else ''
12406 details_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='details', pretty_print=pretty_print)
12407 for blockquote_ in self.blockquote:
12408 namespaceprefix_ = self.blockquote_nsprefix_ + ':' if (UseCapturedNS_ and self.blockquote_nsprefix_) else ''
12409 blockquote_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='blockquote', pretty_print=pretty_print)
12410 for parblock_ in self.parblock:
12411 namespaceprefix_ = self.parblock_nsprefix_ + ':' if (UseCapturedNS_ and self.parblock_nsprefix_) else ''
12412 parblock_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parblock', pretty_print=pretty_print)
12413 def build(self, node, gds_collector_=None):
12414 self.gds_collector_ = gds_collector_
12415 if SaveElementTreeNode:
12416 self.gds_elementtree_node_ = node
12417 already_processed = set()
12418 self.ns_prefix_ = node.prefix
12419 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
12420 self.valueOf_ = get_all_text_(node)
12421 if node.text is not None:
12422 obj_ = self.mixedclass_(MixedContainer.CategoryText,
12423 MixedContainer.TypeNone, '', node.text)
12424 self.content_.append(obj_)
12425 for child in node:
12426 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
12427 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
12428 return self
12429 def buildAttributes(self, node, attrs, already_processed):
12430 pass
12431 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
12432 if nodeName_ == 'ulink':
12433 obj_ = docURLLink.factory(parent_object_=self)
12434 obj_.build(child_, gds_collector_=gds_collector_)
12435 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12436 MixedContainer.TypeNone, 'ulink', obj_)
12437 self.content_.append(obj_)
12438 if hasattr(self, 'add_ulink'):
12439 self.add_ulink(obj_.value)
12440 elif hasattr(self, 'set_ulink'):
12441 self.set_ulink(obj_.value)
12442 elif nodeName_ == 'bold':
12443 obj_ = docMarkupType.factory(parent_object_=self)
12444 obj_.build(child_, gds_collector_=gds_collector_)
12445 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12446 MixedContainer.TypeNone, 'bold', obj_)
12447 self.content_.append(obj_)
12448 if hasattr(self, 'add_bold'):
12449 self.add_bold(obj_.value)
12450 elif hasattr(self, 'set_bold'):
12451 self.set_bold(obj_.value)
12452 elif nodeName_ == 's':
12453 obj_ = docMarkupType.factory(parent_object_=self)
12454 obj_.build(child_, gds_collector_=gds_collector_)
12455 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12456 MixedContainer.TypeNone, 's', obj_)
12457 self.content_.append(obj_)
12458 if hasattr(self, 'add_s'):
12459 self.add_s(obj_.value)
12460 elif hasattr(self, 'set_s'):
12461 self.set_s(obj_.value)
12462 elif nodeName_ == 'strike':
12463 obj_ = docMarkupType.factory(parent_object_=self)
12464 obj_.build(child_, gds_collector_=gds_collector_)
12465 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12466 MixedContainer.TypeNone, 'strike', obj_)
12467 self.content_.append(obj_)
12468 if hasattr(self, 'add_strike'):
12469 self.add_strike(obj_.value)
12470 elif hasattr(self, 'set_strike'):
12471 self.set_strike(obj_.value)
12472 elif nodeName_ == 'underline':
12473 obj_ = docMarkupType.factory(parent_object_=self)
12474 obj_.build(child_, gds_collector_=gds_collector_)
12475 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12476 MixedContainer.TypeNone, 'underline', obj_)
12477 self.content_.append(obj_)
12478 if hasattr(self, 'add_underline'):
12479 self.add_underline(obj_.value)
12480 elif hasattr(self, 'set_underline'):
12481 self.set_underline(obj_.value)
12482 elif nodeName_ == 'emphasis':
12483 obj_ = docMarkupType.factory(parent_object_=self)
12484 obj_.build(child_, gds_collector_=gds_collector_)
12485 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12486 MixedContainer.TypeNone, 'emphasis', obj_)
12487 self.content_.append(obj_)
12488 if hasattr(self, 'add_emphasis'):
12489 self.add_emphasis(obj_.value)
12490 elif hasattr(self, 'set_emphasis'):
12491 self.set_emphasis(obj_.value)
12492 elif nodeName_ == 'computeroutput':
12493 obj_ = docMarkupType.factory(parent_object_=self)
12494 obj_.build(child_, gds_collector_=gds_collector_)
12495 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12496 MixedContainer.TypeNone, 'computeroutput', obj_)
12497 self.content_.append(obj_)
12498 if hasattr(self, 'add_computeroutput'):
12499 self.add_computeroutput(obj_.value)
12500 elif hasattr(self, 'set_computeroutput'):
12501 self.set_computeroutput(obj_.value)
12502 elif nodeName_ == 'subscript':
12503 obj_ = docMarkupType.factory(parent_object_=self)
12504 obj_.build(child_, gds_collector_=gds_collector_)
12505 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12506 MixedContainer.TypeNone, 'subscript', obj_)
12507 self.content_.append(obj_)
12508 if hasattr(self, 'add_subscript'):
12509 self.add_subscript(obj_.value)
12510 elif hasattr(self, 'set_subscript'):
12511 self.set_subscript(obj_.value)
12512 elif nodeName_ == 'superscript':
12513 obj_ = docMarkupType.factory(parent_object_=self)
12514 obj_.build(child_, gds_collector_=gds_collector_)
12515 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12516 MixedContainer.TypeNone, 'superscript', obj_)
12517 self.content_.append(obj_)
12518 if hasattr(self, 'add_superscript'):
12519 self.add_superscript(obj_.value)
12520 elif hasattr(self, 'set_superscript'):
12521 self.set_superscript(obj_.value)
12522 elif nodeName_ == 'center':
12523 obj_ = docMarkupType.factory(parent_object_=self)
12524 obj_.build(child_, gds_collector_=gds_collector_)
12525 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12526 MixedContainer.TypeNone, 'center', obj_)
12527 self.content_.append(obj_)
12528 if hasattr(self, 'add_center'):
12529 self.add_center(obj_.value)
12530 elif hasattr(self, 'set_center'):
12531 self.set_center(obj_.value)
12532 elif nodeName_ == 'small':
12533 obj_ = docMarkupType.factory(parent_object_=self)
12534 obj_.build(child_, gds_collector_=gds_collector_)
12535 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12536 MixedContainer.TypeNone, 'small', obj_)
12537 self.content_.append(obj_)
12538 if hasattr(self, 'add_small'):
12539 self.add_small(obj_.value)
12540 elif hasattr(self, 'set_small'):
12541 self.set_small(obj_.value)
12542 elif nodeName_ == 'cite':
12543 obj_ = docMarkupType.factory(parent_object_=self)
12544 obj_.build(child_, gds_collector_=gds_collector_)
12545 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12546 MixedContainer.TypeNone, 'cite', obj_)
12547 self.content_.append(obj_)
12548 if hasattr(self, 'add_cite'):
12549 self.add_cite(obj_.value)
12550 elif hasattr(self, 'set_cite'):
12551 self.set_cite(obj_.value)
12552 elif nodeName_ == 'del':
12553 obj_ = docMarkupType.factory(parent_object_=self)
12554 obj_.build(child_, gds_collector_=gds_collector_)
12555 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12556 MixedContainer.TypeNone, 'del', obj_)
12557 self.content_.append(obj_)
12558 if hasattr(self, 'add_del'):
12559 self.add_del(obj_.value)
12560 elif hasattr(self, 'set_del'):
12561 self.set_del(obj_.value)
12562 elif nodeName_ == 'ins':
12563 obj_ = docMarkupType.factory(parent_object_=self)
12564 obj_.build(child_, gds_collector_=gds_collector_)
12565 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12566 MixedContainer.TypeNone, 'ins', obj_)
12567 self.content_.append(obj_)
12568 if hasattr(self, 'add_ins'):
12569 self.add_ins(obj_.value)
12570 elif hasattr(self, 'set_ins'):
12571 self.set_ins(obj_.value)
12572 elif nodeName_ == 'htmlonly':
12573 obj_ = docHtmlOnlyType.factory(parent_object_=self)
12574 obj_.build(child_, gds_collector_=gds_collector_)
12575 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12576 MixedContainer.TypeNone, 'htmlonly', obj_)
12577 self.content_.append(obj_)
12578 if hasattr(self, 'add_htmlonly'):
12579 self.add_htmlonly(obj_.value)
12580 elif hasattr(self, 'set_htmlonly'):
12581 self.set_htmlonly(obj_.value)
12582 elif nodeName_ == 'manonly' and child_.text is not None:
12583 valuestr_ = child_.text
12584 valuestr_ = self.gds_parse_string(valuestr_, node, 'manonly')
12585 valuestr_ = self.gds_validate_string(valuestr_, node, 'manonly')
12586 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12587 MixedContainer.TypeString, 'manonly', valuestr_)
12588 self.content_.append(obj_)
12589 self.manonly_nsprefix_ = child_.prefix
12590 elif nodeName_ == 'xmlonly' and child_.text is not None:
12591 valuestr_ = child_.text
12592 valuestr_ = self.gds_parse_string(valuestr_, node, 'xmlonly')
12593 valuestr_ = self.gds_validate_string(valuestr_, node, 'xmlonly')
12594 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12595 MixedContainer.TypeString, 'xmlonly', valuestr_)
12596 self.content_.append(obj_)
12597 self.xmlonly_nsprefix_ = child_.prefix
12598 elif nodeName_ == 'rtfonly' and child_.text is not None:
12599 valuestr_ = child_.text
12600 valuestr_ = self.gds_parse_string(valuestr_, node, 'rtfonly')
12601 valuestr_ = self.gds_validate_string(valuestr_, node, 'rtfonly')
12602 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12603 MixedContainer.TypeString, 'rtfonly', valuestr_)
12604 self.content_.append(obj_)
12605 self.rtfonly_nsprefix_ = child_.prefix
12606 elif nodeName_ == 'latexonly' and child_.text is not None:
12607 valuestr_ = child_.text
12608 valuestr_ = self.gds_parse_string(valuestr_, node, 'latexonly')
12609 valuestr_ = self.gds_validate_string(valuestr_, node, 'latexonly')
12610 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12611 MixedContainer.TypeString, 'latexonly', valuestr_)
12612 self.content_.append(obj_)
12613 self.latexonly_nsprefix_ = child_.prefix
12614 elif nodeName_ == 'docbookonly' and child_.text is not None:
12615 valuestr_ = child_.text
12616 valuestr_ = self.gds_parse_string(valuestr_, node, 'docbookonly')
12617 valuestr_ = self.gds_validate_string(valuestr_, node, 'docbookonly')
12618 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12619 MixedContainer.TypeString, 'docbookonly', valuestr_)
12620 self.content_.append(obj_)
12621 self.docbookonly_nsprefix_ = child_.prefix
12622 elif nodeName_ == 'image':
12623 obj_ = docImageType.factory(parent_object_=self)
12624 obj_.build(child_, gds_collector_=gds_collector_)
12625 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12626 MixedContainer.TypeNone, 'image', obj_)
12627 self.content_.append(obj_)
12628 if hasattr(self, 'add_image'):
12629 self.add_image(obj_.value)
12630 elif hasattr(self, 'set_image'):
12631 self.set_image(obj_.value)
12632 elif nodeName_ == 'dot':
12633 obj_ = docDotMscType.factory(parent_object_=self)
12634 obj_.build(child_, gds_collector_=gds_collector_)
12635 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12636 MixedContainer.TypeNone, 'dot', obj_)
12637 self.content_.append(obj_)
12638 if hasattr(self, 'add_dot'):
12639 self.add_dot(obj_.value)
12640 elif hasattr(self, 'set_dot'):
12641 self.set_dot(obj_.value)
12642 elif nodeName_ == 'msc':
12643 obj_ = docDotMscType.factory(parent_object_=self)
12644 obj_.build(child_, gds_collector_=gds_collector_)
12645 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12646 MixedContainer.TypeNone, 'msc', obj_)
12647 self.content_.append(obj_)
12648 if hasattr(self, 'add_msc'):
12649 self.add_msc(obj_.value)
12650 elif hasattr(self, 'set_msc'):
12651 self.set_msc(obj_.value)
12652 elif nodeName_ == 'plantuml':
12653 obj_ = docPlantumlType.factory(parent_object_=self)
12654 obj_.build(child_, gds_collector_=gds_collector_)
12655 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12656 MixedContainer.TypeNone, 'plantuml', obj_)
12657 self.content_.append(obj_)
12658 if hasattr(self, 'add_plantuml'):
12659 self.add_plantuml(obj_.value)
12660 elif hasattr(self, 'set_plantuml'):
12661 self.set_plantuml(obj_.value)
12662 elif nodeName_ == 'anchor':
12663 obj_ = docAnchorType.factory(parent_object_=self)
12664 obj_.build(child_, gds_collector_=gds_collector_)
12665 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12666 MixedContainer.TypeNone, 'anchor', obj_)
12667 self.content_.append(obj_)
12668 if hasattr(self, 'add_anchor'):
12669 self.add_anchor(obj_.value)
12670 elif hasattr(self, 'set_anchor'):
12671 self.set_anchor(obj_.value)
12672 elif nodeName_ == 'formula':
12673 obj_ = docFormulaType.factory(parent_object_=self)
12674 obj_.build(child_, gds_collector_=gds_collector_)
12675 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12676 MixedContainer.TypeNone, 'formula', obj_)
12677 self.content_.append(obj_)
12678 if hasattr(self, 'add_formula'):
12679 self.add_formula(obj_.value)
12680 elif hasattr(self, 'set_formula'):
12681 self.set_formula(obj_.value)
12682 elif nodeName_ == 'ref':
12683 obj_ = docRefTextType.factory(parent_object_=self)
12684 obj_.build(child_, gds_collector_=gds_collector_)
12685 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12686 MixedContainer.TypeNone, 'ref', obj_)
12687 self.content_.append(obj_)
12688 if hasattr(self, 'add_ref'):
12689 self.add_ref(obj_.value)
12690 elif hasattr(self, 'set_ref'):
12691 self.set_ref(obj_.value)
12692 elif nodeName_ == 'emoji':
12693 obj_ = docEmojiType.factory(parent_object_=self)
12694 obj_.build(child_, gds_collector_=gds_collector_)
12695 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12696 MixedContainer.TypeNone, 'emoji', obj_)
12697 self.content_.append(obj_)
12698 if hasattr(self, 'add_emoji'):
12699 self.add_emoji(obj_.value)
12700 elif hasattr(self, 'set_emoji'):
12701 self.set_emoji(obj_.value)
12702 elif nodeName_ == 'linebreak':
12703 obj_ = docEmptyType.factory(parent_object_=self)
12704 obj_.build(child_, gds_collector_=gds_collector_)
12705 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12706 MixedContainer.TypeNone, 'linebreak', obj_)
12707 self.content_.append(obj_)
12708 if hasattr(self, 'add_linebreak'):
12709 self.add_linebreak(obj_.value)
12710 elif hasattr(self, 'set_linebreak'):
12711 self.set_linebreak(obj_.value)
12712 elif nodeName_ == 'hruler':
12713 obj_ = docEmptyType.factory(parent_object_=self)
12714 obj_.build(child_, gds_collector_=gds_collector_)
12715 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12716 MixedContainer.TypeNone, 'hruler', obj_)
12717 self.content_.append(obj_)
12718 if hasattr(self, 'add_hruler'):
12719 self.add_hruler(obj_.value)
12720 elif hasattr(self, 'set_hruler'):
12721 self.set_hruler(obj_.value)
12722 elif nodeName_ == 'preformatted':
12723 obj_ = docMarkupType.factory(parent_object_=self)
12724 obj_.build(child_, gds_collector_=gds_collector_)
12725 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12726 MixedContainer.TypeNone, 'preformatted', obj_)
12727 self.content_.append(obj_)
12728 if hasattr(self, 'add_preformatted'):
12729 self.add_preformatted(obj_.value)
12730 elif hasattr(self, 'set_preformatted'):
12731 self.set_preformatted(obj_.value)
12732 elif nodeName_ == 'programlisting':
12733 obj_ = listingType.factory(parent_object_=self)
12734 obj_.build(child_, gds_collector_=gds_collector_)
12735 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12736 MixedContainer.TypeNone, 'programlisting', obj_)
12737 self.content_.append(obj_)
12738 if hasattr(self, 'add_programlisting'):
12739 self.add_programlisting(obj_.value)
12740 elif hasattr(self, 'set_programlisting'):
12741 self.set_programlisting(obj_.value)
12742 elif nodeName_ == 'verbatim' and child_.text is not None:
12743 valuestr_ = child_.text
12744 valuestr_ = self.gds_parse_string(valuestr_, node, 'verbatim')
12745 valuestr_ = self.gds_validate_string(valuestr_, node, 'verbatim')
12746 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12747 MixedContainer.TypeString, 'verbatim', valuestr_)
12748 self.content_.append(obj_)
12749 self.verbatim_nsprefix_ = child_.prefix
12750 elif nodeName_ == 'javadocliteral' and child_.text is not None:
12751 valuestr_ = child_.text
12752 valuestr_ = self.gds_parse_string(valuestr_, node, 'javadocliteral')
12753 valuestr_ = self.gds_validate_string(valuestr_, node, 'javadocliteral')
12754 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12755 MixedContainer.TypeString, 'javadocliteral', valuestr_)
12756 self.content_.append(obj_)
12757 self.javadocliteral_nsprefix_ = child_.prefix
12758 elif nodeName_ == 'javadoccode' and child_.text is not None:
12759 valuestr_ = child_.text
12760 valuestr_ = self.gds_parse_string(valuestr_, node, 'javadoccode')
12761 valuestr_ = self.gds_validate_string(valuestr_, node, 'javadoccode')
12762 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
12763 MixedContainer.TypeString, 'javadoccode', valuestr_)
12764 self.content_.append(obj_)
12765 self.javadoccode_nsprefix_ = child_.prefix
12766 elif nodeName_ == 'indexentry':
12767 obj_ = docIndexEntryType.factory(parent_object_=self)
12768 obj_.build(child_, gds_collector_=gds_collector_)
12769 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12770 MixedContainer.TypeNone, 'indexentry', obj_)
12771 self.content_.append(obj_)
12772 if hasattr(self, 'add_indexentry'):
12773 self.add_indexentry(obj_.value)
12774 elif hasattr(self, 'set_indexentry'):
12775 self.set_indexentry(obj_.value)
12776 elif nodeName_ == 'orderedlist':
12777 obj_ = docListType.factory(parent_object_=self)
12778 obj_.build(child_, gds_collector_=gds_collector_)
12779 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12780 MixedContainer.TypeNone, 'orderedlist', obj_)
12781 self.content_.append(obj_)
12782 if hasattr(self, 'add_orderedlist'):
12783 self.add_orderedlist(obj_.value)
12784 elif hasattr(self, 'set_orderedlist'):
12785 self.set_orderedlist(obj_.value)
12786 elif nodeName_ == 'itemizedlist':
12787 obj_ = docListType.factory(parent_object_=self)
12788 obj_.build(child_, gds_collector_=gds_collector_)
12789 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12790 MixedContainer.TypeNone, 'itemizedlist', obj_)
12791 self.content_.append(obj_)
12792 if hasattr(self, 'add_itemizedlist'):
12793 self.add_itemizedlist(obj_.value)
12794 elif hasattr(self, 'set_itemizedlist'):
12795 self.set_itemizedlist(obj_.value)
12796 elif nodeName_ == 'simplesect':
12797 obj_ = docSimpleSectType.factory(parent_object_=self)
12798 obj_.build(child_, gds_collector_=gds_collector_)
12799 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12800 MixedContainer.TypeNone, 'simplesect', obj_)
12801 self.content_.append(obj_)
12802 if hasattr(self, 'add_simplesect'):
12803 self.add_simplesect(obj_.value)
12804 elif hasattr(self, 'set_simplesect'):
12805 self.set_simplesect(obj_.value)
12806 elif nodeName_ == 'title':
12807 obj_ = docTitleType.factory(parent_object_=self)
12808 obj_.build(child_, gds_collector_=gds_collector_)
12809 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12810 MixedContainer.TypeNone, 'title', obj_)
12811 self.content_.append(obj_)
12812 if hasattr(self, 'add_title'):
12813 self.add_title(obj_.value)
12814 elif hasattr(self, 'set_title'):
12815 self.set_title(obj_.value)
12816 elif nodeName_ == 'variablelist':
12817 obj_ = docVariableListType.factory(parent_object_=self)
12818 obj_.build(child_, gds_collector_=gds_collector_)
12819 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12820 MixedContainer.TypeNone, 'variablelist', obj_)
12821 self.content_.append(obj_)
12822 if hasattr(self, 'add_variablelist'):
12823 self.add_variablelist(obj_.value)
12824 elif hasattr(self, 'set_variablelist'):
12825 self.set_variablelist(obj_.value)
12826 elif nodeName_ == 'table':
12827 obj_ = docTableType.factory(parent_object_=self)
12828 obj_.build(child_, gds_collector_=gds_collector_)
12829 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12830 MixedContainer.TypeNone, 'table', obj_)
12831 self.content_.append(obj_)
12832 if hasattr(self, 'add_table'):
12833 self.add_table(obj_.value)
12834 elif hasattr(self, 'set_table'):
12835 self.set_table(obj_.value)
12836 elif nodeName_ == 'heading':
12837 obj_ = docHeadingType.factory(parent_object_=self)
12838 obj_.build(child_, gds_collector_=gds_collector_)
12839 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12840 MixedContainer.TypeNone, 'heading', obj_)
12841 self.content_.append(obj_)
12842 if hasattr(self, 'add_heading'):
12843 self.add_heading(obj_.value)
12844 elif hasattr(self, 'set_heading'):
12845 self.set_heading(obj_.value)
12846 elif nodeName_ == 'dotfile':
12847 obj_ = docImageFileType.factory(parent_object_=self)
12848 obj_.build(child_, gds_collector_=gds_collector_)
12849 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12850 MixedContainer.TypeNone, 'dotfile', obj_)
12851 self.content_.append(obj_)
12852 if hasattr(self, 'add_dotfile'):
12853 self.add_dotfile(obj_.value)
12854 elif hasattr(self, 'set_dotfile'):
12855 self.set_dotfile(obj_.value)
12856 elif nodeName_ == 'mscfile':
12857 obj_ = docImageFileType.factory(parent_object_=self)
12858 obj_.build(child_, gds_collector_=gds_collector_)
12859 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12860 MixedContainer.TypeNone, 'mscfile', obj_)
12861 self.content_.append(obj_)
12862 if hasattr(self, 'add_mscfile'):
12863 self.add_mscfile(obj_.value)
12864 elif hasattr(self, 'set_mscfile'):
12865 self.set_mscfile(obj_.value)
12866 elif nodeName_ == 'diafile':
12867 obj_ = docImageFileType.factory(parent_object_=self)
12868 obj_.build(child_, gds_collector_=gds_collector_)
12869 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12870 MixedContainer.TypeNone, 'diafile', obj_)
12871 self.content_.append(obj_)
12872 if hasattr(self, 'add_diafile'):
12873 self.add_diafile(obj_.value)
12874 elif hasattr(self, 'set_diafile'):
12875 self.set_diafile(obj_.value)
12876 elif nodeName_ == 'toclist':
12877 obj_ = docTocListType.factory(parent_object_=self)
12878 obj_.build(child_, gds_collector_=gds_collector_)
12879 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12880 MixedContainer.TypeNone, 'toclist', obj_)
12881 self.content_.append(obj_)
12882 if hasattr(self, 'add_toclist'):
12883 self.add_toclist(obj_.value)
12884 elif hasattr(self, 'set_toclist'):
12885 self.set_toclist(obj_.value)
12886 elif nodeName_ == 'language':
12887 obj_ = docLanguageType.factory(parent_object_=self)
12888 obj_.build(child_, gds_collector_=gds_collector_)
12889 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12890 MixedContainer.TypeNone, 'language', obj_)
12891 self.content_.append(obj_)
12892 if hasattr(self, 'add_language'):
12893 self.add_language(obj_.value)
12894 elif hasattr(self, 'set_language'):
12895 self.set_language(obj_.value)
12896 elif nodeName_ == 'parameterlist':
12897 obj_ = docParamListType.factory(parent_object_=self)
12898 obj_.build(child_, gds_collector_=gds_collector_)
12899 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12900 MixedContainer.TypeNone, 'parameterlist', obj_)
12901 self.content_.append(obj_)
12902 if hasattr(self, 'add_parameterlist'):
12903 self.add_parameterlist(obj_.value)
12904 elif hasattr(self, 'set_parameterlist'):
12905 self.set_parameterlist(obj_.value)
12906 elif nodeName_ == 'xrefsect':
12907 obj_ = docXRefSectType.factory(parent_object_=self)
12908 obj_.build(child_, gds_collector_=gds_collector_)
12909 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12910 MixedContainer.TypeNone, 'xrefsect', obj_)
12911 self.content_.append(obj_)
12912 if hasattr(self, 'add_xrefsect'):
12913 self.add_xrefsect(obj_.value)
12914 elif hasattr(self, 'set_xrefsect'):
12915 self.set_xrefsect(obj_.value)
12916 elif nodeName_ == 'copydoc':
12917 obj_ = docCopyType.factory(parent_object_=self)
12918 obj_.build(child_, gds_collector_=gds_collector_)
12919 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12920 MixedContainer.TypeNone, 'copydoc', obj_)
12921 self.content_.append(obj_)
12922 if hasattr(self, 'add_copydoc'):
12923 self.add_copydoc(obj_.value)
12924 elif hasattr(self, 'set_copydoc'):
12925 self.set_copydoc(obj_.value)
12926 elif nodeName_ == 'details':
12927 obj_ = docDetailsType.factory(parent_object_=self)
12928 obj_.build(child_, gds_collector_=gds_collector_)
12929 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12930 MixedContainer.TypeNone, 'details', obj_)
12931 self.content_.append(obj_)
12932 if hasattr(self, 'add_details'):
12933 self.add_details(obj_.value)
12934 elif hasattr(self, 'set_details'):
12935 self.set_details(obj_.value)
12936 elif nodeName_ == 'blockquote':
12937 obj_ = docBlockQuoteType.factory(parent_object_=self)
12938 obj_.build(child_, gds_collector_=gds_collector_)
12939 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12940 MixedContainer.TypeNone, 'blockquote', obj_)
12941 self.content_.append(obj_)
12942 if hasattr(self, 'add_blockquote'):
12943 self.add_blockquote(obj_.value)
12944 elif hasattr(self, 'set_blockquote'):
12945 self.set_blockquote(obj_.value)
12946 elif nodeName_ == 'parblock':
12947 obj_ = docParBlockType.factory(parent_object_=self)
12948 obj_.build(child_, gds_collector_=gds_collector_)
12949 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
12950 MixedContainer.TypeNone, 'parblock', obj_)
12951 self.content_.append(obj_)
12952 if hasattr(self, 'add_parblock'):
12953 self.add_parblock(obj_.value)
12954 elif hasattr(self, 'set_parblock'):
12955 self.set_parblock(obj_.value)
12956 if not fromsubclass_ and child_.tail is not None:
12957 obj_ = self.mixedclass_(MixedContainer.CategoryText,
12958 MixedContainer.TypeNone, '', child_.tail)
12959 self.content_.append(obj_)
12960# end class docParaType
12961
12962
12963class docMarkupType(GeneratedsSuper):
12964 __hash__ = GeneratedsSuper.__hash__
12965 subclass = None
12966 superclass = None
12967 def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, hruler=None, preformatted=None, programlisting=None, verbatim=None, javadocliteral=None, javadoccode=None, indexentry=None, orderedlist=None, itemizedlist=None, simplesect=None, title=None, variablelist=None, table=None, heading=None, dotfile=None, mscfile=None, diafile=None, toclist=None, language=None, parameterlist=None, xrefsect=None, copydoc=None, details=None, blockquote=None, parblock=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
12968 self.gds_collector_ = gds_collector_
12969 self.gds_elementtree_node_ = None
12970 self.original_tagname_ = None
12971 self.parent_object_ = kwargs_.get('parent_object_')
12972 self.ns_prefix_ = None
12973 if ulink is None:
12974 self.ulink = []
12975 else:
12976 self.ulink = ulink
12977 self.ulink_nsprefix_ = None
12978 if bold is None:
12979 self.bold = []
12980 else:
12981 self.bold = bold
12982 self.bold_nsprefix_ = None
12983 if s is None:
12984 self.s = []
12985 else:
12986 self.s = s
12987 self.s_nsprefix_ = None
12988 if strike is None:
12989 self.strike = []
12990 else:
12991 self.strike = strike
12992 self.strike_nsprefix_ = None
12993 if underline is None:
12994 self.underline = []
12995 else:
12996 self.underline = underline
12997 self.underline_nsprefix_ = None
12998 if emphasis is None:
12999 self.emphasis = []
13000 else:
13001 self.emphasis = emphasis
13002 self.emphasis_nsprefix_ = None
13003 if computeroutput is None:
13004 self.computeroutput = []
13005 else:
13006 self.computeroutput = computeroutput
13007 self.computeroutput_nsprefix_ = None
13008 if subscript is None:
13009 self.subscript = []
13010 else:
13011 self.subscript = subscript
13012 self.subscript_nsprefix_ = None
13013 if superscript is None:
13014 self.superscript = []
13015 else:
13016 self.superscript = superscript
13017 self.superscript_nsprefix_ = None
13018 if center is None:
13019 self.center = []
13020 else:
13021 self.center = center
13022 self.center_nsprefix_ = None
13023 if small is None:
13024 self.small = []
13025 else:
13026 self.small = small
13027 self.small_nsprefix_ = None
13028 if cite is None:
13029 self.cite = []
13030 else:
13031 self.cite = cite
13032 self.cite_nsprefix_ = None
13033 if del_ is None:
13034 self.del_ = []
13035 else:
13036 self.del_ = del_
13037 self.del__nsprefix_ = None
13038 if ins is None:
13039 self.ins = []
13040 else:
13041 self.ins = ins
13042 self.ins_nsprefix_ = None
13043 if htmlonly is None:
13044 self.htmlonly = []
13045 else:
13046 self.htmlonly = htmlonly
13047 self.htmlonly_nsprefix_ = None
13048 if manonly is None:
13049 self.manonly = []
13050 else:
13051 self.manonly = manonly
13052 self.manonly_nsprefix_ = None
13053 if xmlonly is None:
13054 self.xmlonly = []
13055 else:
13056 self.xmlonly = xmlonly
13057 self.xmlonly_nsprefix_ = None
13058 if rtfonly is None:
13059 self.rtfonly = []
13060 else:
13061 self.rtfonly = rtfonly
13062 self.rtfonly_nsprefix_ = None
13063 if latexonly is None:
13064 self.latexonly = []
13065 else:
13066 self.latexonly = latexonly
13067 self.latexonly_nsprefix_ = None
13068 if docbookonly is None:
13069 self.docbookonly = []
13070 else:
13071 self.docbookonly = docbookonly
13072 self.docbookonly_nsprefix_ = None
13073 if image is None:
13074 self.image = []
13075 else:
13076 self.image = image
13077 self.image_nsprefix_ = None
13078 if dot is None:
13079 self.dot = []
13080 else:
13081 self.dot = dot
13082 self.dot_nsprefix_ = None
13083 if msc is None:
13084 self.msc = []
13085 else:
13086 self.msc = msc
13087 self.msc_nsprefix_ = None
13088 if plantuml is None:
13089 self.plantuml = []
13090 else:
13091 self.plantuml = plantuml
13092 self.plantuml_nsprefix_ = None
13093 if anchor is None:
13094 self.anchor = []
13095 else:
13096 self.anchor = anchor
13097 self.anchor_nsprefix_ = None
13098 if formula is None:
13099 self.formula = []
13100 else:
13101 self.formula = formula
13102 self.formula_nsprefix_ = None
13103 if ref is None:
13104 self.ref = []
13105 else:
13106 self.ref = ref
13107 self.ref_nsprefix_ = None
13108 if emoji is None:
13109 self.emoji = []
13110 else:
13111 self.emoji = emoji
13112 self.emoji_nsprefix_ = None
13113 if linebreak is None:
13114 self.linebreak = []
13115 else:
13116 self.linebreak = linebreak
13117 self.linebreak_nsprefix_ = None
13118 if hruler is None:
13119 self.hruler = []
13120 else:
13121 self.hruler = hruler
13122 self.hruler_nsprefix_ = None
13123 if preformatted is None:
13124 self.preformatted = []
13125 else:
13126 self.preformatted = preformatted
13127 self.preformatted_nsprefix_ = None
13128 if programlisting is None:
13129 self.programlisting = []
13130 else:
13131 self.programlisting = programlisting
13132 self.programlisting_nsprefix_ = None
13133 if verbatim is None:
13134 self.verbatim = []
13135 else:
13136 self.verbatim = verbatim
13137 self.verbatim_nsprefix_ = None
13138 if javadocliteral is None:
13139 self.javadocliteral = []
13140 else:
13141 self.javadocliteral = javadocliteral
13142 self.javadocliteral_nsprefix_ = None
13143 if javadoccode is None:
13144 self.javadoccode = []
13145 else:
13146 self.javadoccode = javadoccode
13147 self.javadoccode_nsprefix_ = None
13148 if indexentry is None:
13149 self.indexentry = []
13150 else:
13151 self.indexentry = indexentry
13152 self.indexentry_nsprefix_ = None
13153 if orderedlist is None:
13154 self.orderedlist = []
13155 else:
13156 self.orderedlist = orderedlist
13157 self.orderedlist_nsprefix_ = None
13158 if itemizedlist is None:
13159 self.itemizedlist = []
13160 else:
13161 self.itemizedlist = itemizedlist
13162 self.itemizedlist_nsprefix_ = None
13163 if simplesect is None:
13164 self.simplesect = []
13165 else:
13166 self.simplesect = simplesect
13167 self.simplesect_nsprefix_ = None
13168 if title is None:
13169 self.title = []
13170 else:
13171 self.title = title
13172 self.title_nsprefix_ = None
13173 if variablelist is None:
13174 self.variablelist = []
13175 else:
13176 self.variablelist = variablelist
13177 self.variablelist_nsprefix_ = None
13178 if table is None:
13179 self.table = []
13180 else:
13181 self.table = table
13182 self.table_nsprefix_ = None
13183 if heading is None:
13184 self.heading = []
13185 else:
13186 self.heading = heading
13187 self.heading_nsprefix_ = None
13188 if dotfile is None:
13189 self.dotfile = []
13190 else:
13191 self.dotfile = dotfile
13192 self.dotfile_nsprefix_ = None
13193 if mscfile is None:
13194 self.mscfile = []
13195 else:
13196 self.mscfile = mscfile
13197 self.mscfile_nsprefix_ = None
13198 if diafile is None:
13199 self.diafile = []
13200 else:
13201 self.diafile = diafile
13202 self.diafile_nsprefix_ = None
13203 if toclist is None:
13204 self.toclist = []
13205 else:
13206 self.toclist = toclist
13207 self.toclist_nsprefix_ = None
13208 if language is None:
13209 self.language = []
13210 else:
13211 self.language = language
13212 self.language_nsprefix_ = None
13213 if parameterlist is None:
13214 self.parameterlist = []
13215 else:
13216 self.parameterlist = parameterlist
13217 self.parameterlist_nsprefix_ = None
13218 if xrefsect is None:
13219 self.xrefsect = []
13220 else:
13221 self.xrefsect = xrefsect
13222 self.xrefsect_nsprefix_ = None
13223 if copydoc is None:
13224 self.copydoc = []
13225 else:
13226 self.copydoc = copydoc
13227 self.copydoc_nsprefix_ = None
13228 if details is None:
13229 self.details = []
13230 else:
13231 self.details = details
13232 self.details_nsprefix_ = None
13233 if blockquote is None:
13234 self.blockquote = []
13235 else:
13236 self.blockquote = blockquote
13237 self.blockquote_nsprefix_ = None
13238 if parblock is None:
13239 self.parblock = []
13240 else:
13241 self.parblock = parblock
13242 self.parblock_nsprefix_ = None
13243 self.valueOf_ = valueOf_
13244 if mixedclass_ is None:
13245 self.mixedclass_ = MixedContainer
13246 else:
13247 self.mixedclass_ = mixedclass_
13248 if content_ is None:
13249 self.content_ = []
13250 else:
13251 self.content_ = content_
13252 self.valueOf_ = valueOf_
13253 def factory(*args_, **kwargs_):
13254 if CurrentSubclassModule_ is not None:
13255 subclass = getSubclassFromModule_(
13256 CurrentSubclassModule_, docMarkupType)
13257 if subclass is not None:
13258 return subclass(*args_, **kwargs_)
13259 if docMarkupType.subclass:
13260 return docMarkupType.subclass(*args_, **kwargs_)
13261 else:
13262 return docMarkupType(*args_, **kwargs_)
13263 factory = staticmethod(factory)
13265 return self.ns_prefix_
13266 def set_ns_prefix_(self, ns_prefix):
13267 self.ns_prefix_ = ns_prefix
13268 def get_ulink(self):
13269 return self.ulink
13270 def set_ulink(self, ulink):
13271 self.ulink = ulink
13272 def add_ulink(self, value):
13273 self.ulink.append(value)
13274 def insert_ulink_at(self, index, value):
13275 self.ulink.insert(index, value)
13276 def replace_ulink_at(self, index, value):
13277 self.ulink[index] = value
13278 def get_bold(self):
13279 return self.bold
13280 def set_bold(self, bold):
13281 self.bold = bold
13282 def add_bold(self, value):
13283 self.bold.append(value)
13284 def insert_bold_at(self, index, value):
13285 self.bold.insert(index, value)
13286 def replace_bold_at(self, index, value):
13287 self.bold[index] = value
13288 def get_s(self):
13289 return self.s
13290 def set_s(self, s):
13291 self.s = s
13292 def add_s(self, value):
13293 self.s.append(value)
13294 def insert_s_at(self, index, value):
13295 self.s.insert(index, value)
13296 def replace_s_at(self, index, value):
13297 self.s[index] = value
13298 def get_strike(self):
13299 return self.strike
13300 def set_strike(self, strike):
13301 self.strike = strike
13302 def add_strike(self, value):
13303 self.strike.append(value)
13304 def insert_strike_at(self, index, value):
13305 self.strike.insert(index, value)
13306 def replace_strike_at(self, index, value):
13307 self.strike[index] = value
13308 def get_underline(self):
13309 return self.underline
13310 def set_underline(self, underline):
13311 self.underline = underline
13312 def add_underline(self, value):
13313 self.underline.append(value)
13314 def insert_underline_at(self, index, value):
13315 self.underline.insert(index, value)
13316 def replace_underline_at(self, index, value):
13317 self.underline[index] = value
13318 def get_emphasis(self):
13319 return self.emphasis
13320 def set_emphasis(self, emphasis):
13321 self.emphasis = emphasis
13322 def add_emphasis(self, value):
13323 self.emphasis.append(value)
13324 def insert_emphasis_at(self, index, value):
13325 self.emphasis.insert(index, value)
13326 def replace_emphasis_at(self, index, value):
13327 self.emphasis[index] = value
13329 return self.computeroutput
13330 def set_computeroutput(self, computeroutput):
13331 self.computeroutput = computeroutput
13332 def add_computeroutput(self, value):
13333 self.computeroutput.append(value)
13334 def insert_computeroutput_at(self, index, value):
13335 self.computeroutput.insert(index, value)
13336 def replace_computeroutput_at(self, index, value):
13337 self.computeroutput[index] = value
13338 def get_subscript(self):
13339 return self.subscript
13340 def set_subscript(self, subscript):
13341 self.subscript = subscript
13342 def add_subscript(self, value):
13343 self.subscript.append(value)
13344 def insert_subscript_at(self, index, value):
13345 self.subscript.insert(index, value)
13346 def replace_subscript_at(self, index, value):
13347 self.subscript[index] = value
13349 return self.superscript
13350 def set_superscript(self, superscript):
13351 self.superscript = superscript
13352 def add_superscript(self, value):
13353 self.superscript.append(value)
13354 def insert_superscript_at(self, index, value):
13355 self.superscript.insert(index, value)
13356 def replace_superscript_at(self, index, value):
13357 self.superscript[index] = value
13358 def get_center(self):
13359 return self.center
13360 def set_center(self, center):
13361 self.center = center
13362 def add_center(self, value):
13363 self.center.append(value)
13364 def insert_center_at(self, index, value):
13365 self.center.insert(index, value)
13366 def replace_center_at(self, index, value):
13367 self.center[index] = value
13368 def get_small(self):
13369 return self.small
13370 def set_small(self, small):
13371 self.small = small
13372 def add_small(self, value):
13373 self.small.append(value)
13374 def insert_small_at(self, index, value):
13375 self.small.insert(index, value)
13376 def replace_small_at(self, index, value):
13377 self.small[index] = value
13378 def get_cite(self):
13379 return self.cite
13380 def set_cite(self, cite):
13381 self.cite = cite
13382 def add_cite(self, value):
13383 self.cite.append(value)
13384 def insert_cite_at(self, index, value):
13385 self.cite.insert(index, value)
13386 def replace_cite_at(self, index, value):
13387 self.cite[index] = value
13388 def get_del(self):
13389 return self.del_
13390 def set_del(self, del_):
13391 self.del_ = del_
13392 def add_del(self, value):
13393 self.del_.append(value)
13394 def insert_del_at(self, index, value):
13395 self.del_.insert(index, value)
13396 def replace_del_at(self, index, value):
13397 self.del_[index] = value
13398 def get_ins(self):
13399 return self.ins
13400 def set_ins(self, ins):
13401 self.ins = ins
13402 def add_ins(self, value):
13403 self.ins.append(value)
13404 def insert_ins_at(self, index, value):
13405 self.ins.insert(index, value)
13406 def replace_ins_at(self, index, value):
13407 self.ins[index] = value
13408 def get_htmlonly(self):
13409 return self.htmlonly
13410 def set_htmlonly(self, htmlonly):
13411 self.htmlonly = htmlonly
13412 def add_htmlonly(self, value):
13413 self.htmlonly.append(value)
13414 def insert_htmlonly_at(self, index, value):
13415 self.htmlonly.insert(index, value)
13416 def replace_htmlonly_at(self, index, value):
13417 self.htmlonly[index] = value
13418 def get_manonly(self):
13419 return self.manonly
13420 def set_manonly(self, manonly):
13421 self.manonly = manonly
13422 def add_manonly(self, value):
13423 self.manonly.append(value)
13424 def insert_manonly_at(self, index, value):
13425 self.manonly.insert(index, value)
13426 def replace_manonly_at(self, index, value):
13427 self.manonly[index] = value
13428 def get_xmlonly(self):
13429 return self.xmlonly
13430 def set_xmlonly(self, xmlonly):
13431 self.xmlonly = xmlonly
13432 def add_xmlonly(self, value):
13433 self.xmlonly.append(value)
13434 def insert_xmlonly_at(self, index, value):
13435 self.xmlonly.insert(index, value)
13436 def replace_xmlonly_at(self, index, value):
13437 self.xmlonly[index] = value
13438 def get_rtfonly(self):
13439 return self.rtfonly
13440 def set_rtfonly(self, rtfonly):
13441 self.rtfonly = rtfonly
13442 def add_rtfonly(self, value):
13443 self.rtfonly.append(value)
13444 def insert_rtfonly_at(self, index, value):
13445 self.rtfonly.insert(index, value)
13446 def replace_rtfonly_at(self, index, value):
13447 self.rtfonly[index] = value
13448 def get_latexonly(self):
13449 return self.latexonly
13450 def set_latexonly(self, latexonly):
13451 self.latexonly = latexonly
13452 def add_latexonly(self, value):
13453 self.latexonly.append(value)
13454 def insert_latexonly_at(self, index, value):
13455 self.latexonly.insert(index, value)
13456 def replace_latexonly_at(self, index, value):
13457 self.latexonly[index] = value
13459 return self.docbookonly
13460 def set_docbookonly(self, docbookonly):
13461 self.docbookonly = docbookonly
13462 def add_docbookonly(self, value):
13463 self.docbookonly.append(value)
13464 def insert_docbookonly_at(self, index, value):
13465 self.docbookonly.insert(index, value)
13466 def replace_docbookonly_at(self, index, value):
13467 self.docbookonly[index] = value
13468 def get_image(self):
13469 return self.image
13470 def set_image(self, image):
13471 self.image = image
13472 def add_image(self, value):
13473 self.image.append(value)
13474 def insert_image_at(self, index, value):
13475 self.image.insert(index, value)
13476 def replace_image_at(self, index, value):
13477 self.image[index] = value
13478 def get_dot(self):
13479 return self.dot
13480 def set_dot(self, dot):
13481 self.dot = dot
13482 def add_dot(self, value):
13483 self.dot.append(value)
13484 def insert_dot_at(self, index, value):
13485 self.dot.insert(index, value)
13486 def replace_dot_at(self, index, value):
13487 self.dot[index] = value
13488 def get_msc(self):
13489 return self.msc
13490 def set_msc(self, msc):
13491 self.msc = msc
13492 def add_msc(self, value):
13493 self.msc.append(value)
13494 def insert_msc_at(self, index, value):
13495 self.msc.insert(index, value)
13496 def replace_msc_at(self, index, value):
13497 self.msc[index] = value
13498 def get_plantuml(self):
13499 return self.plantuml
13500 def set_plantuml(self, plantuml):
13501 self.plantuml = plantuml
13502 def add_plantuml(self, value):
13503 self.plantuml.append(value)
13504 def insert_plantuml_at(self, index, value):
13505 self.plantuml.insert(index, value)
13506 def replace_plantuml_at(self, index, value):
13507 self.plantuml[index] = value
13508 def get_anchor(self):
13509 return self.anchor
13510 def set_anchor(self, anchor):
13511 self.anchor = anchor
13512 def add_anchor(self, value):
13513 self.anchor.append(value)
13514 def insert_anchor_at(self, index, value):
13515 self.anchor.insert(index, value)
13516 def replace_anchor_at(self, index, value):
13517 self.anchor[index] = value
13518 def get_formula(self):
13519 return self.formula
13520 def set_formula(self, formula):
13521 self.formula = formula
13522 def add_formula(self, value):
13523 self.formula.append(value)
13524 def insert_formula_at(self, index, value):
13525 self.formula.insert(index, value)
13526 def replace_formula_at(self, index, value):
13527 self.formula[index] = value
13528 def get_ref(self):
13529 return self.ref
13530 def set_ref(self, ref):
13531 self.ref = ref
13532 def add_ref(self, value):
13533 self.ref.append(value)
13534 def insert_ref_at(self, index, value):
13535 self.ref.insert(index, value)
13536 def replace_ref_at(self, index, value):
13537 self.ref[index] = value
13538 def get_emoji(self):
13539 return self.emoji
13540 def set_emoji(self, emoji):
13541 self.emoji = emoji
13542 def add_emoji(self, value):
13543 self.emoji.append(value)
13544 def insert_emoji_at(self, index, value):
13545 self.emoji.insert(index, value)
13546 def replace_emoji_at(self, index, value):
13547 self.emoji[index] = value
13548 def get_linebreak(self):
13549 return self.linebreak
13550 def set_linebreak(self, linebreak):
13551 self.linebreak = linebreak
13552 def add_linebreak(self, value):
13553 self.linebreak.append(value)
13554 def insert_linebreak_at(self, index, value):
13555 self.linebreak.insert(index, value)
13556 def replace_linebreak_at(self, index, value):
13557 self.linebreak[index] = value
13558 def get_hruler(self):
13559 return self.hruler
13560 def set_hruler(self, hruler):
13561 self.hruler = hruler
13562 def add_hruler(self, value):
13563 self.hruler.append(value)
13564 def insert_hruler_at(self, index, value):
13565 self.hruler.insert(index, value)
13566 def replace_hruler_at(self, index, value):
13567 self.hruler[index] = value
13569 return self.preformatted
13570 def set_preformatted(self, preformatted):
13571 self.preformatted = preformatted
13572 def add_preformatted(self, value):
13573 self.preformatted.append(value)
13574 def insert_preformatted_at(self, index, value):
13575 self.preformatted.insert(index, value)
13576 def replace_preformatted_at(self, index, value):
13577 self.preformatted[index] = value
13579 return self.programlisting
13580 def set_programlisting(self, programlisting):
13581 self.programlisting = programlisting
13582 def add_programlisting(self, value):
13583 self.programlisting.append(value)
13584 def insert_programlisting_at(self, index, value):
13585 self.programlisting.insert(index, value)
13586 def replace_programlisting_at(self, index, value):
13587 self.programlisting[index] = value
13588 def get_verbatim(self):
13589 return self.verbatim
13590 def set_verbatim(self, verbatim):
13591 self.verbatim = verbatim
13592 def add_verbatim(self, value):
13593 self.verbatim.append(value)
13594 def insert_verbatim_at(self, index, value):
13595 self.verbatim.insert(index, value)
13596 def replace_verbatim_at(self, index, value):
13597 self.verbatim[index] = value
13599 return self.javadocliteral
13600 def set_javadocliteral(self, javadocliteral):
13601 self.javadocliteral = javadocliteral
13602 def add_javadocliteral(self, value):
13603 self.javadocliteral.append(value)
13604 def insert_javadocliteral_at(self, index, value):
13605 self.javadocliteral.insert(index, value)
13606 def replace_javadocliteral_at(self, index, value):
13607 self.javadocliteral[index] = value
13609 return self.javadoccode
13610 def set_javadoccode(self, javadoccode):
13611 self.javadoccode = javadoccode
13612 def add_javadoccode(self, value):
13613 self.javadoccode.append(value)
13614 def insert_javadoccode_at(self, index, value):
13615 self.javadoccode.insert(index, value)
13616 def replace_javadoccode_at(self, index, value):
13617 self.javadoccode[index] = value
13619 return self.indexentry
13620 def set_indexentry(self, indexentry):
13621 self.indexentry = indexentry
13622 def add_indexentry(self, value):
13623 self.indexentry.append(value)
13624 def insert_indexentry_at(self, index, value):
13625 self.indexentry.insert(index, value)
13626 def replace_indexentry_at(self, index, value):
13627 self.indexentry[index] = value
13629 return self.orderedlist
13630 def set_orderedlist(self, orderedlist):
13631 self.orderedlist = orderedlist
13632 def add_orderedlist(self, value):
13633 self.orderedlist.append(value)
13634 def insert_orderedlist_at(self, index, value):
13635 self.orderedlist.insert(index, value)
13636 def replace_orderedlist_at(self, index, value):
13637 self.orderedlist[index] = value
13639 return self.itemizedlist
13640 def set_itemizedlist(self, itemizedlist):
13641 self.itemizedlist = itemizedlist
13642 def add_itemizedlist(self, value):
13643 self.itemizedlist.append(value)
13644 def insert_itemizedlist_at(self, index, value):
13645 self.itemizedlist.insert(index, value)
13646 def replace_itemizedlist_at(self, index, value):
13647 self.itemizedlist[index] = value
13649 return self.simplesect
13650 def set_simplesect(self, simplesect):
13651 self.simplesect = simplesect
13652 def add_simplesect(self, value):
13653 self.simplesect.append(value)
13654 def insert_simplesect_at(self, index, value):
13655 self.simplesect.insert(index, value)
13656 def replace_simplesect_at(self, index, value):
13657 self.simplesect[index] = value
13658 def get_title(self):
13659 return self.title
13660 def set_title(self, title):
13661 self.title = title
13662 def add_title(self, value):
13663 self.title.append(value)
13664 def insert_title_at(self, index, value):
13665 self.title.insert(index, value)
13666 def replace_title_at(self, index, value):
13667 self.title[index] = value
13669 return self.variablelist
13670 def set_variablelist(self, variablelist):
13671 self.variablelist = variablelist
13672 def add_variablelist(self, value):
13673 self.variablelist.append(value)
13674 def insert_variablelist_at(self, index, value):
13675 self.variablelist.insert(index, value)
13676 def replace_variablelist_at(self, index, value):
13677 self.variablelist[index] = value
13678 def get_table(self):
13679 return self.table
13680 def set_table(self, table):
13681 self.table = table
13682 def add_table(self, value):
13683 self.table.append(value)
13684 def insert_table_at(self, index, value):
13685 self.table.insert(index, value)
13686 def replace_table_at(self, index, value):
13687 self.table[index] = value
13688 def get_heading(self):
13689 return self.heading
13690 def set_heading(self, heading):
13691 self.heading = heading
13692 def add_heading(self, value):
13693 self.heading.append(value)
13694 def insert_heading_at(self, index, value):
13695 self.heading.insert(index, value)
13696 def replace_heading_at(self, index, value):
13697 self.heading[index] = value
13698 def get_dotfile(self):
13699 return self.dotfile
13700 def set_dotfile(self, dotfile):
13701 self.dotfile = dotfile
13702 def add_dotfile(self, value):
13703 self.dotfile.append(value)
13704 def insert_dotfile_at(self, index, value):
13705 self.dotfile.insert(index, value)
13706 def replace_dotfile_at(self, index, value):
13707 self.dotfile[index] = value
13708 def get_mscfile(self):
13709 return self.mscfile
13710 def set_mscfile(self, mscfile):
13711 self.mscfile = mscfile
13712 def add_mscfile(self, value):
13713 self.mscfile.append(value)
13714 def insert_mscfile_at(self, index, value):
13715 self.mscfile.insert(index, value)
13716 def replace_mscfile_at(self, index, value):
13717 self.mscfile[index] = value
13718 def get_diafile(self):
13719 return self.diafile
13720 def set_diafile(self, diafile):
13721 self.diafile = diafile
13722 def add_diafile(self, value):
13723 self.diafile.append(value)
13724 def insert_diafile_at(self, index, value):
13725 self.diafile.insert(index, value)
13726 def replace_diafile_at(self, index, value):
13727 self.diafile[index] = value
13728 def get_toclist(self):
13729 return self.toclist
13730 def set_toclist(self, toclist):
13731 self.toclist = toclist
13732 def add_toclist(self, value):
13733 self.toclist.append(value)
13734 def insert_toclist_at(self, index, value):
13735 self.toclist.insert(index, value)
13736 def replace_toclist_at(self, index, value):
13737 self.toclist[index] = value
13738 def get_language(self):
13739 return self.language
13740 def set_language(self, language):
13741 self.language = language
13742 def add_language(self, value):
13743 self.language.append(value)
13744 def insert_language_at(self, index, value):
13745 self.language.insert(index, value)
13746 def replace_language_at(self, index, value):
13747 self.language[index] = value
13749 return self.parameterlist
13750 def set_parameterlist(self, parameterlist):
13751 self.parameterlist = parameterlist
13752 def add_parameterlist(self, value):
13753 self.parameterlist.append(value)
13754 def insert_parameterlist_at(self, index, value):
13755 self.parameterlist.insert(index, value)
13756 def replace_parameterlist_at(self, index, value):
13757 self.parameterlist[index] = value
13758 def get_xrefsect(self):
13759 return self.xrefsect
13760 def set_xrefsect(self, xrefsect):
13761 self.xrefsect = xrefsect
13762 def add_xrefsect(self, value):
13763 self.xrefsect.append(value)
13764 def insert_xrefsect_at(self, index, value):
13765 self.xrefsect.insert(index, value)
13766 def replace_xrefsect_at(self, index, value):
13767 self.xrefsect[index] = value
13768 def get_copydoc(self):
13769 return self.copydoc
13770 def set_copydoc(self, copydoc):
13771 self.copydoc = copydoc
13772 def add_copydoc(self, value):
13773 self.copydoc.append(value)
13774 def insert_copydoc_at(self, index, value):
13775 self.copydoc.insert(index, value)
13776 def replace_copydoc_at(self, index, value):
13777 self.copydoc[index] = value
13778 def get_details(self):
13779 return self.details
13780 def set_details(self, details):
13781 self.details = details
13782 def add_details(self, value):
13783 self.details.append(value)
13784 def insert_details_at(self, index, value):
13785 self.details.insert(index, value)
13786 def replace_details_at(self, index, value):
13787 self.details[index] = value
13789 return self.blockquote
13790 def set_blockquote(self, blockquote):
13791 self.blockquote = blockquote
13792 def add_blockquote(self, value):
13793 self.blockquote.append(value)
13794 def insert_blockquote_at(self, index, value):
13795 self.blockquote.insert(index, value)
13796 def replace_blockquote_at(self, index, value):
13797 self.blockquote[index] = value
13798 def get_parblock(self):
13799 return self.parblock
13800 def set_parblock(self, parblock):
13801 self.parblock = parblock
13802 def add_parblock(self, value):
13803 self.parblock.append(value)
13804 def insert_parblock_at(self, index, value):
13805 self.parblock.insert(index, value)
13806 def replace_parblock_at(self, index, value):
13807 self.parblock[index] = value
13808 def get_valueOf_(self): return self.valueOf_
13809 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
13810 def hasContent_(self):
13811 if (
13812 self.ulink or
13813 self.bold or
13814 self.s or
13815 self.strike or
13816 self.underline or
13817 self.emphasis or
13818 self.computeroutput or
13819 self.subscript or
13820 self.superscript or
13821 self.center or
13822 self.small or
13823 self.cite or
13824 self.del_ or
13825 self.ins or
13826 self.htmlonly or
13827 self.manonly or
13828 self.xmlonly or
13829 self.rtfonly or
13830 self.latexonly or
13831 self.docbookonly or
13832 self.image or
13833 self.dot or
13834 self.msc or
13835 self.plantuml or
13836 self.anchor or
13837 self.formula or
13838 self.ref or
13839 self.emoji or
13840 self.linebreak or
13841 self.hruler or
13842 self.preformatted or
13843 self.programlisting or
13844 self.verbatim or
13845 self.javadocliteral or
13846 self.javadoccode or
13847 self.indexentry or
13848 self.orderedlist or
13849 self.itemizedlist or
13850 self.simplesect or
13851 self.title or
13852 self.variablelist or
13853 self.table or
13854 self.heading or
13855 self.dotfile or
13856 self.mscfile or
13857 self.diafile or
13858 self.toclist or
13859 self.language or
13860 self.parameterlist or
13861 self.xrefsect or
13862 self.copydoc or
13863 self.details or
13864 self.blockquote or
13865 self.parblock or
13866 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
13867 self.content_
13868 ):
13869 return True
13870 else:
13871 return False
13872 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docMarkupType', pretty_print=True):
13873 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docMarkupType')
13874 if imported_ns_def_ is not None:
13875 namespacedef_ = imported_ns_def_
13876 if pretty_print:
13877 eol_ = '\n'
13878 else:
13879 eol_ = ''
13880 if self.original_tagname_ is not None and name_ == 'docMarkupType':
13881 name_ = self.original_tagname_
13882 if UseCapturedNS_ and self.ns_prefix_:
13883 namespaceprefix_ = self.ns_prefix_ + ':'
13884 showIndent(outfile, level, pretty_print)
13885 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
13886 already_processed = set()
13887 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docMarkupType')
13888 if self.hasContent_hasContent_():
13889 outfile.write('>%s' % (eol_, ))
13890 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docMarkupType', pretty_print=pretty_print)
13891 showIndent(outfile, level, pretty_print)
13892 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
13893 else:
13894 outfile.write('/>%s' % (eol_, ))
13895 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docMarkupType'):
13896 pass
13897 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docMarkupType', fromsubclass_=False, pretty_print=True):
13898 if not fromsubclass_:
13899 for item_ in self.content_:
13900 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
13901 if pretty_print:
13902 eol_ = '\n'
13903 else:
13904 eol_ = ''
13905 for ulink_ in self.ulink:
13906 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
13907 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
13908 for bold_ in self.bold:
13909 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
13910 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
13911 for s_ in self.s:
13912 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
13913 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
13914 for strike_ in self.strike:
13915 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
13916 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
13917 for underline_ in self.underline:
13918 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
13919 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
13920 for emphasis_ in self.emphasis:
13921 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
13922 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
13923 for computeroutput_ in self.computeroutput:
13924 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
13925 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
13926 for subscript_ in self.subscript:
13927 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
13928 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
13929 for superscript_ in self.superscript:
13930 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
13931 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
13932 for center_ in self.center:
13933 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
13934 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
13935 for small_ in self.small:
13936 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
13937 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
13938 for cite_ in self.cite:
13939 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
13940 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
13941 for del_ in self.del_:
13942 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
13943 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
13944 for ins_ in self.ins:
13945 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
13946 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
13947 for htmlonly_ in self.htmlonly:
13948 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
13949 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
13950 for manonly_ in self.manonly:
13951 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
13952 showIndent(outfile, level, pretty_print)
13953 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
13954 for xmlonly_ in self.xmlonly:
13955 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
13956 showIndent(outfile, level, pretty_print)
13957 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
13958 for rtfonly_ in self.rtfonly:
13959 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
13960 showIndent(outfile, level, pretty_print)
13961 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
13962 for latexonly_ in self.latexonly:
13963 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
13964 showIndent(outfile, level, pretty_print)
13965 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
13966 for docbookonly_ in self.docbookonly:
13967 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
13968 showIndent(outfile, level, pretty_print)
13969 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
13970 for image_ in self.image:
13971 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
13972 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
13973 for dot_ in self.dot:
13974 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
13975 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
13976 for msc_ in self.msc:
13977 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
13978 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
13979 for plantuml_ in self.plantuml:
13980 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
13981 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
13982 for anchor_ in self.anchor:
13983 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
13984 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
13985 for formula_ in self.formula:
13986 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
13987 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
13988 for ref_ in self.ref:
13989 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
13990 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
13991 for emoji_ in self.emoji:
13992 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
13993 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
13994 for linebreak_ in self.linebreak:
13995 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
13996 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
13997 for hruler_ in self.hruler:
13998 namespaceprefix_ = self.hruler_nsprefix_ + ':' if (UseCapturedNS_ and self.hruler_nsprefix_) else ''
13999 hruler_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='hruler', pretty_print=pretty_print)
14000 for preformatted_ in self.preformatted:
14001 namespaceprefix_ = self.preformatted_nsprefix_ + ':' if (UseCapturedNS_ and self.preformatted_nsprefix_) else ''
14002 preformatted_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='preformatted', pretty_print=pretty_print)
14003 for programlisting_ in self.programlisting:
14004 namespaceprefix_ = self.programlisting_nsprefix_ + ':' if (UseCapturedNS_ and self.programlisting_nsprefix_) else ''
14005 programlisting_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='programlisting', pretty_print=pretty_print)
14006 for verbatim_ in self.verbatim:
14007 namespaceprefix_ = self.verbatim_nsprefix_ + ':' if (UseCapturedNS_ and self.verbatim_nsprefix_) else ''
14008 showIndent(outfile, level, pretty_print)
14009 outfile.write('<%sverbatim>%s</%sverbatim>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(verbatim_), input_name='verbatim')), namespaceprefix_ , eol_))
14010 for javadocliteral_ in self.javadocliteral:
14011 namespaceprefix_ = self.javadocliteral_nsprefix_ + ':' if (UseCapturedNS_ and self.javadocliteral_nsprefix_) else ''
14012 showIndent(outfile, level, pretty_print)
14013 outfile.write('<%sjavadocliteral>%s</%sjavadocliteral>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(javadocliteral_), input_name='javadocliteral')), namespaceprefix_ , eol_))
14014 for javadoccode_ in self.javadoccode:
14015 namespaceprefix_ = self.javadoccode_nsprefix_ + ':' if (UseCapturedNS_ and self.javadoccode_nsprefix_) else ''
14016 showIndent(outfile, level, pretty_print)
14017 outfile.write('<%sjavadoccode>%s</%sjavadoccode>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(javadoccode_), input_name='javadoccode')), namespaceprefix_ , eol_))
14018 for indexentry_ in self.indexentry:
14019 namespaceprefix_ = self.indexentry_nsprefix_ + ':' if (UseCapturedNS_ and self.indexentry_nsprefix_) else ''
14020 indexentry_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='indexentry', pretty_print=pretty_print)
14021 for orderedlist_ in self.orderedlist:
14022 namespaceprefix_ = self.orderedlist_nsprefix_ + ':' if (UseCapturedNS_ and self.orderedlist_nsprefix_) else ''
14023 orderedlist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='orderedlist', pretty_print=pretty_print)
14024 for itemizedlist_ in self.itemizedlist:
14025 namespaceprefix_ = self.itemizedlist_nsprefix_ + ':' if (UseCapturedNS_ and self.itemizedlist_nsprefix_) else ''
14026 itemizedlist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='itemizedlist', pretty_print=pretty_print)
14027 for simplesect_ in self.simplesect:
14028 namespaceprefix_ = self.simplesect_nsprefix_ + ':' if (UseCapturedNS_ and self.simplesect_nsprefix_) else ''
14029 simplesect_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='simplesect', pretty_print=pretty_print)
14030 for title_ in self.title:
14031 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
14032 title_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='title', pretty_print=pretty_print)
14033 for variablelist_ in self.variablelist:
14034 namespaceprefix_ = self.variablelist_nsprefix_ + ':' if (UseCapturedNS_ and self.variablelist_nsprefix_) else ''
14035 variablelist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='variablelist', pretty_print=pretty_print)
14036 for table_ in self.table:
14037 namespaceprefix_ = self.table_nsprefix_ + ':' if (UseCapturedNS_ and self.table_nsprefix_) else ''
14038 table_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='table', pretty_print=pretty_print)
14039 for heading_ in self.heading:
14040 namespaceprefix_ = self.heading_nsprefix_ + ':' if (UseCapturedNS_ and self.heading_nsprefix_) else ''
14041 heading_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='heading', pretty_print=pretty_print)
14042 for dotfile_ in self.dotfile:
14043 namespaceprefix_ = self.dotfile_nsprefix_ + ':' if (UseCapturedNS_ and self.dotfile_nsprefix_) else ''
14044 dotfile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dotfile', pretty_print=pretty_print)
14045 for mscfile_ in self.mscfile:
14046 namespaceprefix_ = self.mscfile_nsprefix_ + ':' if (UseCapturedNS_ and self.mscfile_nsprefix_) else ''
14047 mscfile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='mscfile', pretty_print=pretty_print)
14048 for diafile_ in self.diafile:
14049 namespaceprefix_ = self.diafile_nsprefix_ + ':' if (UseCapturedNS_ and self.diafile_nsprefix_) else ''
14050 diafile_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='diafile', pretty_print=pretty_print)
14051 for toclist_ in self.toclist:
14052 namespaceprefix_ = self.toclist_nsprefix_ + ':' if (UseCapturedNS_ and self.toclist_nsprefix_) else ''
14053 toclist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='toclist', pretty_print=pretty_print)
14054 for language_ in self.language:
14055 namespaceprefix_ = self.language_nsprefix_ + ':' if (UseCapturedNS_ and self.language_nsprefix_) else ''
14056 language_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='language', pretty_print=pretty_print)
14057 for parameterlist_ in self.parameterlist:
14058 namespaceprefix_ = self.parameterlist_nsprefix_ + ':' if (UseCapturedNS_ and self.parameterlist_nsprefix_) else ''
14059 parameterlist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parameterlist', pretty_print=pretty_print)
14060 for xrefsect_ in self.xrefsect:
14061 namespaceprefix_ = self.xrefsect_nsprefix_ + ':' if (UseCapturedNS_ and self.xrefsect_nsprefix_) else ''
14062 xrefsect_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='xrefsect', pretty_print=pretty_print)
14063 for copydoc_ in self.copydoc:
14064 namespaceprefix_ = self.copydoc_nsprefix_ + ':' if (UseCapturedNS_ and self.copydoc_nsprefix_) else ''
14065 copydoc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='copydoc', pretty_print=pretty_print)
14066 for details_ in self.details:
14067 namespaceprefix_ = self.details_nsprefix_ + ':' if (UseCapturedNS_ and self.details_nsprefix_) else ''
14068 details_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='details', pretty_print=pretty_print)
14069 for blockquote_ in self.blockquote:
14070 namespaceprefix_ = self.blockquote_nsprefix_ + ':' if (UseCapturedNS_ and self.blockquote_nsprefix_) else ''
14071 blockquote_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='blockquote', pretty_print=pretty_print)
14072 for parblock_ in self.parblock:
14073 namespaceprefix_ = self.parblock_nsprefix_ + ':' if (UseCapturedNS_ and self.parblock_nsprefix_) else ''
14074 parblock_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parblock', pretty_print=pretty_print)
14075 def build(self, node, gds_collector_=None):
14076 self.gds_collector_ = gds_collector_
14077 if SaveElementTreeNode:
14078 self.gds_elementtree_node_ = node
14079 already_processed = set()
14080 self.ns_prefix_ = node.prefix
14081 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
14082 self.valueOf_ = get_all_text_(node)
14083 if node.text is not None:
14084 obj_ = self.mixedclass_(MixedContainer.CategoryText,
14085 MixedContainer.TypeNone, '', node.text)
14086 self.content_.append(obj_)
14087 for child in node:
14088 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
14089 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
14090 return self
14091 def buildAttributes(self, node, attrs, already_processed):
14092 pass
14093 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
14094 if nodeName_ == 'ulink':
14095 obj_ = docURLLink.factory(parent_object_=self)
14096 obj_.build(child_, gds_collector_=gds_collector_)
14097 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14098 MixedContainer.TypeNone, 'ulink', obj_)
14099 self.content_.append(obj_)
14100 if hasattr(self, 'add_ulink'):
14101 self.add_ulink(obj_.value)
14102 elif hasattr(self, 'set_ulink'):
14103 self.set_ulink(obj_.value)
14104 elif nodeName_ == 'bold':
14105 obj_ = docMarkupType.factory(parent_object_=self)
14106 obj_.build(child_, gds_collector_=gds_collector_)
14107 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14108 MixedContainer.TypeNone, 'bold', obj_)
14109 self.content_.append(obj_)
14110 if hasattr(self, 'add_bold'):
14111 self.add_bold(obj_.value)
14112 elif hasattr(self, 'set_bold'):
14113 self.set_bold(obj_.value)
14114 elif nodeName_ == 's':
14115 obj_ = docMarkupType.factory(parent_object_=self)
14116 obj_.build(child_, gds_collector_=gds_collector_)
14117 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14118 MixedContainer.TypeNone, 's', obj_)
14119 self.content_.append(obj_)
14120 if hasattr(self, 'add_s'):
14121 self.add_s(obj_.value)
14122 elif hasattr(self, 'set_s'):
14123 self.set_s(obj_.value)
14124 elif nodeName_ == 'strike':
14125 obj_ = docMarkupType.factory(parent_object_=self)
14126 obj_.build(child_, gds_collector_=gds_collector_)
14127 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14128 MixedContainer.TypeNone, 'strike', obj_)
14129 self.content_.append(obj_)
14130 if hasattr(self, 'add_strike'):
14131 self.add_strike(obj_.value)
14132 elif hasattr(self, 'set_strike'):
14133 self.set_strike(obj_.value)
14134 elif nodeName_ == 'underline':
14135 obj_ = docMarkupType.factory(parent_object_=self)
14136 obj_.build(child_, gds_collector_=gds_collector_)
14137 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14138 MixedContainer.TypeNone, 'underline', obj_)
14139 self.content_.append(obj_)
14140 if hasattr(self, 'add_underline'):
14141 self.add_underline(obj_.value)
14142 elif hasattr(self, 'set_underline'):
14143 self.set_underline(obj_.value)
14144 elif nodeName_ == 'emphasis':
14145 obj_ = docMarkupType.factory(parent_object_=self)
14146 obj_.build(child_, gds_collector_=gds_collector_)
14147 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14148 MixedContainer.TypeNone, 'emphasis', obj_)
14149 self.content_.append(obj_)
14150 if hasattr(self, 'add_emphasis'):
14151 self.add_emphasis(obj_.value)
14152 elif hasattr(self, 'set_emphasis'):
14153 self.set_emphasis(obj_.value)
14154 elif nodeName_ == 'computeroutput':
14155 obj_ = docMarkupType.factory(parent_object_=self)
14156 obj_.build(child_, gds_collector_=gds_collector_)
14157 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14158 MixedContainer.TypeNone, 'computeroutput', obj_)
14159 self.content_.append(obj_)
14160 if hasattr(self, 'add_computeroutput'):
14161 self.add_computeroutput(obj_.value)
14162 elif hasattr(self, 'set_computeroutput'):
14163 self.set_computeroutput(obj_.value)
14164 elif nodeName_ == 'subscript':
14165 obj_ = docMarkupType.factory(parent_object_=self)
14166 obj_.build(child_, gds_collector_=gds_collector_)
14167 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14168 MixedContainer.TypeNone, 'subscript', obj_)
14169 self.content_.append(obj_)
14170 if hasattr(self, 'add_subscript'):
14171 self.add_subscript(obj_.value)
14172 elif hasattr(self, 'set_subscript'):
14173 self.set_subscript(obj_.value)
14174 elif nodeName_ == 'superscript':
14175 obj_ = docMarkupType.factory(parent_object_=self)
14176 obj_.build(child_, gds_collector_=gds_collector_)
14177 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14178 MixedContainer.TypeNone, 'superscript', obj_)
14179 self.content_.append(obj_)
14180 if hasattr(self, 'add_superscript'):
14181 self.add_superscript(obj_.value)
14182 elif hasattr(self, 'set_superscript'):
14183 self.set_superscript(obj_.value)
14184 elif nodeName_ == 'center':
14185 obj_ = docMarkupType.factory(parent_object_=self)
14186 obj_.build(child_, gds_collector_=gds_collector_)
14187 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14188 MixedContainer.TypeNone, 'center', obj_)
14189 self.content_.append(obj_)
14190 if hasattr(self, 'add_center'):
14191 self.add_center(obj_.value)
14192 elif hasattr(self, 'set_center'):
14193 self.set_center(obj_.value)
14194 elif nodeName_ == 'small':
14195 obj_ = docMarkupType.factory(parent_object_=self)
14196 obj_.build(child_, gds_collector_=gds_collector_)
14197 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14198 MixedContainer.TypeNone, 'small', obj_)
14199 self.content_.append(obj_)
14200 if hasattr(self, 'add_small'):
14201 self.add_small(obj_.value)
14202 elif hasattr(self, 'set_small'):
14203 self.set_small(obj_.value)
14204 elif nodeName_ == 'cite':
14205 obj_ = docMarkupType.factory(parent_object_=self)
14206 obj_.build(child_, gds_collector_=gds_collector_)
14207 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14208 MixedContainer.TypeNone, 'cite', obj_)
14209 self.content_.append(obj_)
14210 if hasattr(self, 'add_cite'):
14211 self.add_cite(obj_.value)
14212 elif hasattr(self, 'set_cite'):
14213 self.set_cite(obj_.value)
14214 elif nodeName_ == 'del':
14215 obj_ = docMarkupType.factory(parent_object_=self)
14216 obj_.build(child_, gds_collector_=gds_collector_)
14217 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14218 MixedContainer.TypeNone, 'del', obj_)
14219 self.content_.append(obj_)
14220 if hasattr(self, 'add_del'):
14221 self.add_del(obj_.value)
14222 elif hasattr(self, 'set_del'):
14223 self.set_del(obj_.value)
14224 elif nodeName_ == 'ins':
14225 obj_ = docMarkupType.factory(parent_object_=self)
14226 obj_.build(child_, gds_collector_=gds_collector_)
14227 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14228 MixedContainer.TypeNone, 'ins', obj_)
14229 self.content_.append(obj_)
14230 if hasattr(self, 'add_ins'):
14231 self.add_ins(obj_.value)
14232 elif hasattr(self, 'set_ins'):
14233 self.set_ins(obj_.value)
14234 elif nodeName_ == 'htmlonly':
14235 obj_ = docHtmlOnlyType.factory(parent_object_=self)
14236 obj_.build(child_, gds_collector_=gds_collector_)
14237 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14238 MixedContainer.TypeNone, 'htmlonly', obj_)
14239 self.content_.append(obj_)
14240 if hasattr(self, 'add_htmlonly'):
14241 self.add_htmlonly(obj_.value)
14242 elif hasattr(self, 'set_htmlonly'):
14243 self.set_htmlonly(obj_.value)
14244 elif nodeName_ == 'manonly' and child_.text is not None:
14245 valuestr_ = child_.text
14246 valuestr_ = self.gds_parse_string(valuestr_, node, 'manonly')
14247 valuestr_ = self.gds_validate_string(valuestr_, node, 'manonly')
14248 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14249 MixedContainer.TypeString, 'manonly', valuestr_)
14250 self.content_.append(obj_)
14251 self.manonly_nsprefix_ = child_.prefix
14252 elif nodeName_ == 'xmlonly' and child_.text is not None:
14253 valuestr_ = child_.text
14254 valuestr_ = self.gds_parse_string(valuestr_, node, 'xmlonly')
14255 valuestr_ = self.gds_validate_string(valuestr_, node, 'xmlonly')
14256 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14257 MixedContainer.TypeString, 'xmlonly', valuestr_)
14258 self.content_.append(obj_)
14259 self.xmlonly_nsprefix_ = child_.prefix
14260 elif nodeName_ == 'rtfonly' and child_.text is not None:
14261 valuestr_ = child_.text
14262 valuestr_ = self.gds_parse_string(valuestr_, node, 'rtfonly')
14263 valuestr_ = self.gds_validate_string(valuestr_, node, 'rtfonly')
14264 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14265 MixedContainer.TypeString, 'rtfonly', valuestr_)
14266 self.content_.append(obj_)
14267 self.rtfonly_nsprefix_ = child_.prefix
14268 elif nodeName_ == 'latexonly' and child_.text is not None:
14269 valuestr_ = child_.text
14270 valuestr_ = self.gds_parse_string(valuestr_, node, 'latexonly')
14271 valuestr_ = self.gds_validate_string(valuestr_, node, 'latexonly')
14272 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14273 MixedContainer.TypeString, 'latexonly', valuestr_)
14274 self.content_.append(obj_)
14275 self.latexonly_nsprefix_ = child_.prefix
14276 elif nodeName_ == 'docbookonly' and child_.text is not None:
14277 valuestr_ = child_.text
14278 valuestr_ = self.gds_parse_string(valuestr_, node, 'docbookonly')
14279 valuestr_ = self.gds_validate_string(valuestr_, node, 'docbookonly')
14280 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14281 MixedContainer.TypeString, 'docbookonly', valuestr_)
14282 self.content_.append(obj_)
14283 self.docbookonly_nsprefix_ = child_.prefix
14284 elif nodeName_ == 'image':
14285 obj_ = docImageType.factory(parent_object_=self)
14286 obj_.build(child_, gds_collector_=gds_collector_)
14287 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14288 MixedContainer.TypeNone, 'image', obj_)
14289 self.content_.append(obj_)
14290 if hasattr(self, 'add_image'):
14291 self.add_image(obj_.value)
14292 elif hasattr(self, 'set_image'):
14293 self.set_image(obj_.value)
14294 elif nodeName_ == 'dot':
14295 obj_ = docDotMscType.factory(parent_object_=self)
14296 obj_.build(child_, gds_collector_=gds_collector_)
14297 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14298 MixedContainer.TypeNone, 'dot', obj_)
14299 self.content_.append(obj_)
14300 if hasattr(self, 'add_dot'):
14301 self.add_dot(obj_.value)
14302 elif hasattr(self, 'set_dot'):
14303 self.set_dot(obj_.value)
14304 elif nodeName_ == 'msc':
14305 obj_ = docDotMscType.factory(parent_object_=self)
14306 obj_.build(child_, gds_collector_=gds_collector_)
14307 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14308 MixedContainer.TypeNone, 'msc', obj_)
14309 self.content_.append(obj_)
14310 if hasattr(self, 'add_msc'):
14311 self.add_msc(obj_.value)
14312 elif hasattr(self, 'set_msc'):
14313 self.set_msc(obj_.value)
14314 elif nodeName_ == 'plantuml':
14315 obj_ = docPlantumlType.factory(parent_object_=self)
14316 obj_.build(child_, gds_collector_=gds_collector_)
14317 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14318 MixedContainer.TypeNone, 'plantuml', obj_)
14319 self.content_.append(obj_)
14320 if hasattr(self, 'add_plantuml'):
14321 self.add_plantuml(obj_.value)
14322 elif hasattr(self, 'set_plantuml'):
14323 self.set_plantuml(obj_.value)
14324 elif nodeName_ == 'anchor':
14325 obj_ = docAnchorType.factory(parent_object_=self)
14326 obj_.build(child_, gds_collector_=gds_collector_)
14327 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14328 MixedContainer.TypeNone, 'anchor', obj_)
14329 self.content_.append(obj_)
14330 if hasattr(self, 'add_anchor'):
14331 self.add_anchor(obj_.value)
14332 elif hasattr(self, 'set_anchor'):
14333 self.set_anchor(obj_.value)
14334 elif nodeName_ == 'formula':
14335 obj_ = docFormulaType.factory(parent_object_=self)
14336 obj_.build(child_, gds_collector_=gds_collector_)
14337 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14338 MixedContainer.TypeNone, 'formula', obj_)
14339 self.content_.append(obj_)
14340 if hasattr(self, 'add_formula'):
14341 self.add_formula(obj_.value)
14342 elif hasattr(self, 'set_formula'):
14343 self.set_formula(obj_.value)
14344 elif nodeName_ == 'ref':
14345 obj_ = docRefTextType.factory(parent_object_=self)
14346 obj_.build(child_, gds_collector_=gds_collector_)
14347 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14348 MixedContainer.TypeNone, 'ref', obj_)
14349 self.content_.append(obj_)
14350 if hasattr(self, 'add_ref'):
14351 self.add_ref(obj_.value)
14352 elif hasattr(self, 'set_ref'):
14353 self.set_ref(obj_.value)
14354 elif nodeName_ == 'emoji':
14355 obj_ = docEmojiType.factory(parent_object_=self)
14356 obj_.build(child_, gds_collector_=gds_collector_)
14357 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14358 MixedContainer.TypeNone, 'emoji', obj_)
14359 self.content_.append(obj_)
14360 if hasattr(self, 'add_emoji'):
14361 self.add_emoji(obj_.value)
14362 elif hasattr(self, 'set_emoji'):
14363 self.set_emoji(obj_.value)
14364 elif nodeName_ == 'linebreak':
14365 obj_ = docEmptyType.factory(parent_object_=self)
14366 obj_.build(child_, gds_collector_=gds_collector_)
14367 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14368 MixedContainer.TypeNone, 'linebreak', obj_)
14369 self.content_.append(obj_)
14370 if hasattr(self, 'add_linebreak'):
14371 self.add_linebreak(obj_.value)
14372 elif hasattr(self, 'set_linebreak'):
14373 self.set_linebreak(obj_.value)
14374 elif nodeName_ == 'hruler':
14375 obj_ = docEmptyType.factory(parent_object_=self)
14376 obj_.build(child_, gds_collector_=gds_collector_)
14377 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14378 MixedContainer.TypeNone, 'hruler', obj_)
14379 self.content_.append(obj_)
14380 if hasattr(self, 'add_hruler'):
14381 self.add_hruler(obj_.value)
14382 elif hasattr(self, 'set_hruler'):
14383 self.set_hruler(obj_.value)
14384 elif nodeName_ == 'preformatted':
14385 obj_ = docMarkupType.factory(parent_object_=self)
14386 obj_.build(child_, gds_collector_=gds_collector_)
14387 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14388 MixedContainer.TypeNone, 'preformatted', obj_)
14389 self.content_.append(obj_)
14390 if hasattr(self, 'add_preformatted'):
14391 self.add_preformatted(obj_.value)
14392 elif hasattr(self, 'set_preformatted'):
14393 self.set_preformatted(obj_.value)
14394 elif nodeName_ == 'programlisting':
14395 obj_ = listingType.factory(parent_object_=self)
14396 obj_.build(child_, gds_collector_=gds_collector_)
14397 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14398 MixedContainer.TypeNone, 'programlisting', obj_)
14399 self.content_.append(obj_)
14400 if hasattr(self, 'add_programlisting'):
14401 self.add_programlisting(obj_.value)
14402 elif hasattr(self, 'set_programlisting'):
14403 self.set_programlisting(obj_.value)
14404 elif nodeName_ == 'verbatim' and child_.text is not None:
14405 valuestr_ = child_.text
14406 valuestr_ = self.gds_parse_string(valuestr_, node, 'verbatim')
14407 valuestr_ = self.gds_validate_string(valuestr_, node, 'verbatim')
14408 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14409 MixedContainer.TypeString, 'verbatim', valuestr_)
14410 self.content_.append(obj_)
14411 self.verbatim_nsprefix_ = child_.prefix
14412 elif nodeName_ == 'javadocliteral' and child_.text is not None:
14413 valuestr_ = child_.text
14414 valuestr_ = self.gds_parse_string(valuestr_, node, 'javadocliteral')
14415 valuestr_ = self.gds_validate_string(valuestr_, node, 'javadocliteral')
14416 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14417 MixedContainer.TypeString, 'javadocliteral', valuestr_)
14418 self.content_.append(obj_)
14419 self.javadocliteral_nsprefix_ = child_.prefix
14420 elif nodeName_ == 'javadoccode' and child_.text is not None:
14421 valuestr_ = child_.text
14422 valuestr_ = self.gds_parse_string(valuestr_, node, 'javadoccode')
14423 valuestr_ = self.gds_validate_string(valuestr_, node, 'javadoccode')
14424 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
14425 MixedContainer.TypeString, 'javadoccode', valuestr_)
14426 self.content_.append(obj_)
14427 self.javadoccode_nsprefix_ = child_.prefix
14428 elif nodeName_ == 'indexentry':
14429 obj_ = docIndexEntryType.factory(parent_object_=self)
14430 obj_.build(child_, gds_collector_=gds_collector_)
14431 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14432 MixedContainer.TypeNone, 'indexentry', obj_)
14433 self.content_.append(obj_)
14434 if hasattr(self, 'add_indexentry'):
14435 self.add_indexentry(obj_.value)
14436 elif hasattr(self, 'set_indexentry'):
14437 self.set_indexentry(obj_.value)
14438 elif nodeName_ == 'orderedlist':
14439 obj_ = docListType.factory(parent_object_=self)
14440 obj_.build(child_, gds_collector_=gds_collector_)
14441 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14442 MixedContainer.TypeNone, 'orderedlist', obj_)
14443 self.content_.append(obj_)
14444 if hasattr(self, 'add_orderedlist'):
14445 self.add_orderedlist(obj_.value)
14446 elif hasattr(self, 'set_orderedlist'):
14447 self.set_orderedlist(obj_.value)
14448 elif nodeName_ == 'itemizedlist':
14449 obj_ = docListType.factory(parent_object_=self)
14450 obj_.build(child_, gds_collector_=gds_collector_)
14451 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14452 MixedContainer.TypeNone, 'itemizedlist', obj_)
14453 self.content_.append(obj_)
14454 if hasattr(self, 'add_itemizedlist'):
14455 self.add_itemizedlist(obj_.value)
14456 elif hasattr(self, 'set_itemizedlist'):
14457 self.set_itemizedlist(obj_.value)
14458 elif nodeName_ == 'simplesect':
14459 obj_ = docSimpleSectType.factory(parent_object_=self)
14460 obj_.build(child_, gds_collector_=gds_collector_)
14461 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14462 MixedContainer.TypeNone, 'simplesect', obj_)
14463 self.content_.append(obj_)
14464 if hasattr(self, 'add_simplesect'):
14465 self.add_simplesect(obj_.value)
14466 elif hasattr(self, 'set_simplesect'):
14467 self.set_simplesect(obj_.value)
14468 elif nodeName_ == 'title':
14469 obj_ = docTitleType.factory(parent_object_=self)
14470 obj_.build(child_, gds_collector_=gds_collector_)
14471 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14472 MixedContainer.TypeNone, 'title', obj_)
14473 self.content_.append(obj_)
14474 if hasattr(self, 'add_title'):
14475 self.add_title(obj_.value)
14476 elif hasattr(self, 'set_title'):
14477 self.set_title(obj_.value)
14478 elif nodeName_ == 'variablelist':
14479 obj_ = docVariableListType.factory(parent_object_=self)
14480 obj_.build(child_, gds_collector_=gds_collector_)
14481 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14482 MixedContainer.TypeNone, 'variablelist', obj_)
14483 self.content_.append(obj_)
14484 if hasattr(self, 'add_variablelist'):
14485 self.add_variablelist(obj_.value)
14486 elif hasattr(self, 'set_variablelist'):
14487 self.set_variablelist(obj_.value)
14488 elif nodeName_ == 'table':
14489 obj_ = docTableType.factory(parent_object_=self)
14490 obj_.build(child_, gds_collector_=gds_collector_)
14491 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14492 MixedContainer.TypeNone, 'table', obj_)
14493 self.content_.append(obj_)
14494 if hasattr(self, 'add_table'):
14495 self.add_table(obj_.value)
14496 elif hasattr(self, 'set_table'):
14497 self.set_table(obj_.value)
14498 elif nodeName_ == 'heading':
14499 obj_ = docHeadingType.factory(parent_object_=self)
14500 obj_.build(child_, gds_collector_=gds_collector_)
14501 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14502 MixedContainer.TypeNone, 'heading', obj_)
14503 self.content_.append(obj_)
14504 if hasattr(self, 'add_heading'):
14505 self.add_heading(obj_.value)
14506 elif hasattr(self, 'set_heading'):
14507 self.set_heading(obj_.value)
14508 elif nodeName_ == 'dotfile':
14509 obj_ = docImageFileType.factory(parent_object_=self)
14510 obj_.build(child_, gds_collector_=gds_collector_)
14511 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14512 MixedContainer.TypeNone, 'dotfile', obj_)
14513 self.content_.append(obj_)
14514 if hasattr(self, 'add_dotfile'):
14515 self.add_dotfile(obj_.value)
14516 elif hasattr(self, 'set_dotfile'):
14517 self.set_dotfile(obj_.value)
14518 elif nodeName_ == 'mscfile':
14519 obj_ = docImageFileType.factory(parent_object_=self)
14520 obj_.build(child_, gds_collector_=gds_collector_)
14521 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14522 MixedContainer.TypeNone, 'mscfile', obj_)
14523 self.content_.append(obj_)
14524 if hasattr(self, 'add_mscfile'):
14525 self.add_mscfile(obj_.value)
14526 elif hasattr(self, 'set_mscfile'):
14527 self.set_mscfile(obj_.value)
14528 elif nodeName_ == 'diafile':
14529 obj_ = docImageFileType.factory(parent_object_=self)
14530 obj_.build(child_, gds_collector_=gds_collector_)
14531 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14532 MixedContainer.TypeNone, 'diafile', obj_)
14533 self.content_.append(obj_)
14534 if hasattr(self, 'add_diafile'):
14535 self.add_diafile(obj_.value)
14536 elif hasattr(self, 'set_diafile'):
14537 self.set_diafile(obj_.value)
14538 elif nodeName_ == 'toclist':
14539 obj_ = docTocListType.factory(parent_object_=self)
14540 obj_.build(child_, gds_collector_=gds_collector_)
14541 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14542 MixedContainer.TypeNone, 'toclist', obj_)
14543 self.content_.append(obj_)
14544 if hasattr(self, 'add_toclist'):
14545 self.add_toclist(obj_.value)
14546 elif hasattr(self, 'set_toclist'):
14547 self.set_toclist(obj_.value)
14548 elif nodeName_ == 'language':
14549 obj_ = docLanguageType.factory(parent_object_=self)
14550 obj_.build(child_, gds_collector_=gds_collector_)
14551 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14552 MixedContainer.TypeNone, 'language', obj_)
14553 self.content_.append(obj_)
14554 if hasattr(self, 'add_language'):
14555 self.add_language(obj_.value)
14556 elif hasattr(self, 'set_language'):
14557 self.set_language(obj_.value)
14558 elif nodeName_ == 'parameterlist':
14559 obj_ = docParamListType.factory(parent_object_=self)
14560 obj_.build(child_, gds_collector_=gds_collector_)
14561 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14562 MixedContainer.TypeNone, 'parameterlist', obj_)
14563 self.content_.append(obj_)
14564 if hasattr(self, 'add_parameterlist'):
14565 self.add_parameterlist(obj_.value)
14566 elif hasattr(self, 'set_parameterlist'):
14567 self.set_parameterlist(obj_.value)
14568 elif nodeName_ == 'xrefsect':
14569 obj_ = docXRefSectType.factory(parent_object_=self)
14570 obj_.build(child_, gds_collector_=gds_collector_)
14571 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14572 MixedContainer.TypeNone, 'xrefsect', obj_)
14573 self.content_.append(obj_)
14574 if hasattr(self, 'add_xrefsect'):
14575 self.add_xrefsect(obj_.value)
14576 elif hasattr(self, 'set_xrefsect'):
14577 self.set_xrefsect(obj_.value)
14578 elif nodeName_ == 'copydoc':
14579 obj_ = docCopyType.factory(parent_object_=self)
14580 obj_.build(child_, gds_collector_=gds_collector_)
14581 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14582 MixedContainer.TypeNone, 'copydoc', obj_)
14583 self.content_.append(obj_)
14584 if hasattr(self, 'add_copydoc'):
14585 self.add_copydoc(obj_.value)
14586 elif hasattr(self, 'set_copydoc'):
14587 self.set_copydoc(obj_.value)
14588 elif nodeName_ == 'details':
14589 obj_ = docDetailsType.factory(parent_object_=self)
14590 obj_.build(child_, gds_collector_=gds_collector_)
14591 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14592 MixedContainer.TypeNone, 'details', obj_)
14593 self.content_.append(obj_)
14594 if hasattr(self, 'add_details'):
14595 self.add_details(obj_.value)
14596 elif hasattr(self, 'set_details'):
14597 self.set_details(obj_.value)
14598 elif nodeName_ == 'blockquote':
14599 obj_ = docBlockQuoteType.factory(parent_object_=self)
14600 obj_.build(child_, gds_collector_=gds_collector_)
14601 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14602 MixedContainer.TypeNone, 'blockquote', obj_)
14603 self.content_.append(obj_)
14604 if hasattr(self, 'add_blockquote'):
14605 self.add_blockquote(obj_.value)
14606 elif hasattr(self, 'set_blockquote'):
14607 self.set_blockquote(obj_.value)
14608 elif nodeName_ == 'parblock':
14609 obj_ = docParBlockType.factory(parent_object_=self)
14610 obj_.build(child_, gds_collector_=gds_collector_)
14611 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
14612 MixedContainer.TypeNone, 'parblock', obj_)
14613 self.content_.append(obj_)
14614 if hasattr(self, 'add_parblock'):
14615 self.add_parblock(obj_.value)
14616 elif hasattr(self, 'set_parblock'):
14617 self.set_parblock(obj_.value)
14618 if not fromsubclass_ and child_.tail is not None:
14619 obj_ = self.mixedclass_(MixedContainer.CategoryText,
14620 MixedContainer.TypeNone, '', child_.tail)
14621 self.content_.append(obj_)
14622# end class docMarkupType
14623
14624
14625class docURLLink(GeneratedsSuper):
14626 __hash__ = GeneratedsSuper.__hash__
14627 subclass = None
14628 superclass = None
14629 def __init__(self, url=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
14630 self.gds_collector_ = gds_collector_
14631 self.gds_elementtree_node_ = None
14632 self.original_tagname_ = None
14633 self.parent_object_ = kwargs_.get('parent_object_')
14634 self.ns_prefix_ = None
14635 self.url = _cast(None, url)
14636 self.url_nsprefix_ = None
14637 if ulink is None:
14638 self.ulink = []
14639 else:
14640 self.ulink = ulink
14641 self.ulink_nsprefix_ = None
14642 if bold is None:
14643 self.bold = []
14644 else:
14645 self.bold = bold
14646 self.bold_nsprefix_ = None
14647 if s is None:
14648 self.s = []
14649 else:
14650 self.s = s
14651 self.s_nsprefix_ = None
14652 if strike is None:
14653 self.strike = []
14654 else:
14655 self.strike = strike
14656 self.strike_nsprefix_ = None
14657 if underline is None:
14658 self.underline = []
14659 else:
14660 self.underline = underline
14661 self.underline_nsprefix_ = None
14662 if emphasis is None:
14663 self.emphasis = []
14664 else:
14665 self.emphasis = emphasis
14666 self.emphasis_nsprefix_ = None
14667 if computeroutput is None:
14668 self.computeroutput = []
14669 else:
14670 self.computeroutput = computeroutput
14671 self.computeroutput_nsprefix_ = None
14672 if subscript is None:
14673 self.subscript = []
14674 else:
14675 self.subscript = subscript
14676 self.subscript_nsprefix_ = None
14677 if superscript is None:
14678 self.superscript = []
14679 else:
14680 self.superscript = superscript
14681 self.superscript_nsprefix_ = None
14682 if center is None:
14683 self.center = []
14684 else:
14685 self.center = center
14686 self.center_nsprefix_ = None
14687 if small is None:
14688 self.small = []
14689 else:
14690 self.small = small
14691 self.small_nsprefix_ = None
14692 if cite is None:
14693 self.cite = []
14694 else:
14695 self.cite = cite
14696 self.cite_nsprefix_ = None
14697 if del_ is None:
14698 self.del_ = []
14699 else:
14700 self.del_ = del_
14701 self.del__nsprefix_ = None
14702 if ins is None:
14703 self.ins = []
14704 else:
14705 self.ins = ins
14706 self.ins_nsprefix_ = None
14707 if htmlonly is None:
14708 self.htmlonly = []
14709 else:
14710 self.htmlonly = htmlonly
14711 self.htmlonly_nsprefix_ = None
14712 if manonly is None:
14713 self.manonly = []
14714 else:
14715 self.manonly = manonly
14716 self.manonly_nsprefix_ = None
14717 if xmlonly is None:
14718 self.xmlonly = []
14719 else:
14720 self.xmlonly = xmlonly
14721 self.xmlonly_nsprefix_ = None
14722 if rtfonly is None:
14723 self.rtfonly = []
14724 else:
14725 self.rtfonly = rtfonly
14726 self.rtfonly_nsprefix_ = None
14727 if latexonly is None:
14728 self.latexonly = []
14729 else:
14730 self.latexonly = latexonly
14731 self.latexonly_nsprefix_ = None
14732 if docbookonly is None:
14733 self.docbookonly = []
14734 else:
14735 self.docbookonly = docbookonly
14736 self.docbookonly_nsprefix_ = None
14737 if image is None:
14738 self.image = []
14739 else:
14740 self.image = image
14741 self.image_nsprefix_ = None
14742 if dot is None:
14743 self.dot = []
14744 else:
14745 self.dot = dot
14746 self.dot_nsprefix_ = None
14747 if msc is None:
14748 self.msc = []
14749 else:
14750 self.msc = msc
14751 self.msc_nsprefix_ = None
14752 if plantuml is None:
14753 self.plantuml = []
14754 else:
14755 self.plantuml = plantuml
14756 self.plantuml_nsprefix_ = None
14757 if anchor is None:
14758 self.anchor = []
14759 else:
14760 self.anchor = anchor
14761 self.anchor_nsprefix_ = None
14762 if formula is None:
14763 self.formula = []
14764 else:
14765 self.formula = formula
14766 self.formula_nsprefix_ = None
14767 if ref is None:
14768 self.ref = []
14769 else:
14770 self.ref = ref
14771 self.ref_nsprefix_ = None
14772 if emoji is None:
14773 self.emoji = []
14774 else:
14775 self.emoji = emoji
14776 self.emoji_nsprefix_ = None
14777 if linebreak is None:
14778 self.linebreak = []
14779 else:
14780 self.linebreak = linebreak
14781 self.linebreak_nsprefix_ = None
14782 self.valueOf_ = valueOf_
14783 if mixedclass_ is None:
14784 self.mixedclass_ = MixedContainer
14785 else:
14786 self.mixedclass_ = mixedclass_
14787 if content_ is None:
14788 self.content_ = []
14789 else:
14790 self.content_ = content_
14791 self.valueOf_ = valueOf_
14792 def factory(*args_, **kwargs_):
14793 if CurrentSubclassModule_ is not None:
14794 subclass = getSubclassFromModule_(
14795 CurrentSubclassModule_, docURLLink)
14796 if subclass is not None:
14797 return subclass(*args_, **kwargs_)
14798 if docURLLink.subclass:
14799 return docURLLink.subclass(*args_, **kwargs_)
14800 else:
14801 return docURLLink(*args_, **kwargs_)
14802 factory = staticmethod(factory)
14804 return self.ns_prefix_
14805 def set_ns_prefix_(self, ns_prefix):
14806 self.ns_prefix_ = ns_prefix
14807 def get_ulink(self):
14808 return self.ulink
14809 def set_ulink(self, ulink):
14810 self.ulink = ulink
14811 def add_ulink(self, value):
14812 self.ulink.append(value)
14813 def insert_ulink_at(self, index, value):
14814 self.ulink.insert(index, value)
14815 def replace_ulink_at(self, index, value):
14816 self.ulink[index] = value
14817 def get_bold(self):
14818 return self.bold
14819 def set_bold(self, bold):
14820 self.bold = bold
14821 def add_bold(self, value):
14822 self.bold.append(value)
14823 def insert_bold_at(self, index, value):
14824 self.bold.insert(index, value)
14825 def replace_bold_at(self, index, value):
14826 self.bold[index] = value
14827 def get_s(self):
14828 return self.s
14829 def set_s(self, s):
14830 self.s = s
14831 def add_s(self, value):
14832 self.s.append(value)
14833 def insert_s_at(self, index, value):
14834 self.s.insert(index, value)
14835 def replace_s_at(self, index, value):
14836 self.s[index] = value
14837 def get_strike(self):
14838 return self.strike
14839 def set_strike(self, strike):
14840 self.strike = strike
14841 def add_strike(self, value):
14842 self.strike.append(value)
14843 def insert_strike_at(self, index, value):
14844 self.strike.insert(index, value)
14845 def replace_strike_at(self, index, value):
14846 self.strike[index] = value
14847 def get_underline(self):
14848 return self.underline
14849 def set_underline(self, underline):
14850 self.underline = underline
14851 def add_underline(self, value):
14852 self.underline.append(value)
14853 def insert_underline_at(self, index, value):
14854 self.underline.insert(index, value)
14855 def replace_underline_at(self, index, value):
14856 self.underline[index] = value
14857 def get_emphasis(self):
14858 return self.emphasis
14859 def set_emphasis(self, emphasis):
14860 self.emphasis = emphasis
14861 def add_emphasis(self, value):
14862 self.emphasis.append(value)
14863 def insert_emphasis_at(self, index, value):
14864 self.emphasis.insert(index, value)
14865 def replace_emphasis_at(self, index, value):
14866 self.emphasis[index] = value
14868 return self.computeroutput
14869 def set_computeroutput(self, computeroutput):
14870 self.computeroutput = computeroutput
14871 def add_computeroutput(self, value):
14872 self.computeroutput.append(value)
14873 def insert_computeroutput_at(self, index, value):
14874 self.computeroutput.insert(index, value)
14875 def replace_computeroutput_at(self, index, value):
14876 self.computeroutput[index] = value
14877 def get_subscript(self):
14878 return self.subscript
14879 def set_subscript(self, subscript):
14880 self.subscript = subscript
14881 def add_subscript(self, value):
14882 self.subscript.append(value)
14883 def insert_subscript_at(self, index, value):
14884 self.subscript.insert(index, value)
14885 def replace_subscript_at(self, index, value):
14886 self.subscript[index] = value
14888 return self.superscript
14889 def set_superscript(self, superscript):
14890 self.superscript = superscript
14891 def add_superscript(self, value):
14892 self.superscript.append(value)
14893 def insert_superscript_at(self, index, value):
14894 self.superscript.insert(index, value)
14895 def replace_superscript_at(self, index, value):
14896 self.superscript[index] = value
14897 def get_center(self):
14898 return self.center
14899 def set_center(self, center):
14900 self.center = center
14901 def add_center(self, value):
14902 self.center.append(value)
14903 def insert_center_at(self, index, value):
14904 self.center.insert(index, value)
14905 def replace_center_at(self, index, value):
14906 self.center[index] = value
14907 def get_small(self):
14908 return self.small
14909 def set_small(self, small):
14910 self.small = small
14911 def add_small(self, value):
14912 self.small.append(value)
14913 def insert_small_at(self, index, value):
14914 self.small.insert(index, value)
14915 def replace_small_at(self, index, value):
14916 self.small[index] = value
14917 def get_cite(self):
14918 return self.cite
14919 def set_cite(self, cite):
14920 self.cite = cite
14921 def add_cite(self, value):
14922 self.cite.append(value)
14923 def insert_cite_at(self, index, value):
14924 self.cite.insert(index, value)
14925 def replace_cite_at(self, index, value):
14926 self.cite[index] = value
14927 def get_del(self):
14928 return self.del_
14929 def set_del(self, del_):
14930 self.del_ = del_
14931 def add_del(self, value):
14932 self.del_.append(value)
14933 def insert_del_at(self, index, value):
14934 self.del_.insert(index, value)
14935 def replace_del_at(self, index, value):
14936 self.del_[index] = value
14937 def get_ins(self):
14938 return self.ins
14939 def set_ins(self, ins):
14940 self.ins = ins
14941 def add_ins(self, value):
14942 self.ins.append(value)
14943 def insert_ins_at(self, index, value):
14944 self.ins.insert(index, value)
14945 def replace_ins_at(self, index, value):
14946 self.ins[index] = value
14947 def get_htmlonly(self):
14948 return self.htmlonly
14949 def set_htmlonly(self, htmlonly):
14950 self.htmlonly = htmlonly
14951 def add_htmlonly(self, value):
14952 self.htmlonly.append(value)
14953 def insert_htmlonly_at(self, index, value):
14954 self.htmlonly.insert(index, value)
14955 def replace_htmlonly_at(self, index, value):
14956 self.htmlonly[index] = value
14957 def get_manonly(self):
14958 return self.manonly
14959 def set_manonly(self, manonly):
14960 self.manonly = manonly
14961 def add_manonly(self, value):
14962 self.manonly.append(value)
14963 def insert_manonly_at(self, index, value):
14964 self.manonly.insert(index, value)
14965 def replace_manonly_at(self, index, value):
14966 self.manonly[index] = value
14967 def get_xmlonly(self):
14968 return self.xmlonly
14969 def set_xmlonly(self, xmlonly):
14970 self.xmlonly = xmlonly
14971 def add_xmlonly(self, value):
14972 self.xmlonly.append(value)
14973 def insert_xmlonly_at(self, index, value):
14974 self.xmlonly.insert(index, value)
14975 def replace_xmlonly_at(self, index, value):
14976 self.xmlonly[index] = value
14977 def get_rtfonly(self):
14978 return self.rtfonly
14979 def set_rtfonly(self, rtfonly):
14980 self.rtfonly = rtfonly
14981 def add_rtfonly(self, value):
14982 self.rtfonly.append(value)
14983 def insert_rtfonly_at(self, index, value):
14984 self.rtfonly.insert(index, value)
14985 def replace_rtfonly_at(self, index, value):
14986 self.rtfonly[index] = value
14987 def get_latexonly(self):
14988 return self.latexonly
14989 def set_latexonly(self, latexonly):
14990 self.latexonly = latexonly
14991 def add_latexonly(self, value):
14992 self.latexonly.append(value)
14993 def insert_latexonly_at(self, index, value):
14994 self.latexonly.insert(index, value)
14995 def replace_latexonly_at(self, index, value):
14996 self.latexonly[index] = value
14998 return self.docbookonly
14999 def set_docbookonly(self, docbookonly):
15000 self.docbookonly = docbookonly
15001 def add_docbookonly(self, value):
15002 self.docbookonly.append(value)
15003 def insert_docbookonly_at(self, index, value):
15004 self.docbookonly.insert(index, value)
15005 def replace_docbookonly_at(self, index, value):
15006 self.docbookonly[index] = value
15007 def get_image(self):
15008 return self.image
15009 def set_image(self, image):
15010 self.image = image
15011 def add_image(self, value):
15012 self.image.append(value)
15013 def insert_image_at(self, index, value):
15014 self.image.insert(index, value)
15015 def replace_image_at(self, index, value):
15016 self.image[index] = value
15017 def get_dot(self):
15018 return self.dot
15019 def set_dot(self, dot):
15020 self.dot = dot
15021 def add_dot(self, value):
15022 self.dot.append(value)
15023 def insert_dot_at(self, index, value):
15024 self.dot.insert(index, value)
15025 def replace_dot_at(self, index, value):
15026 self.dot[index] = value
15027 def get_msc(self):
15028 return self.msc
15029 def set_msc(self, msc):
15030 self.msc = msc
15031 def add_msc(self, value):
15032 self.msc.append(value)
15033 def insert_msc_at(self, index, value):
15034 self.msc.insert(index, value)
15035 def replace_msc_at(self, index, value):
15036 self.msc[index] = value
15037 def get_plantuml(self):
15038 return self.plantuml
15039 def set_plantuml(self, plantuml):
15040 self.plantuml = plantuml
15041 def add_plantuml(self, value):
15042 self.plantuml.append(value)
15043 def insert_plantuml_at(self, index, value):
15044 self.plantuml.insert(index, value)
15045 def replace_plantuml_at(self, index, value):
15046 self.plantuml[index] = value
15047 def get_anchor(self):
15048 return self.anchor
15049 def set_anchor(self, anchor):
15050 self.anchor = anchor
15051 def add_anchor(self, value):
15052 self.anchor.append(value)
15053 def insert_anchor_at(self, index, value):
15054 self.anchor.insert(index, value)
15055 def replace_anchor_at(self, index, value):
15056 self.anchor[index] = value
15057 def get_formula(self):
15058 return self.formula
15059 def set_formula(self, formula):
15060 self.formula = formula
15061 def add_formula(self, value):
15062 self.formula.append(value)
15063 def insert_formula_at(self, index, value):
15064 self.formula.insert(index, value)
15065 def replace_formula_at(self, index, value):
15066 self.formula[index] = value
15067 def get_ref(self):
15068 return self.ref
15069 def set_ref(self, ref):
15070 self.ref = ref
15071 def add_ref(self, value):
15072 self.ref.append(value)
15073 def insert_ref_at(self, index, value):
15074 self.ref.insert(index, value)
15075 def replace_ref_at(self, index, value):
15076 self.ref[index] = value
15077 def get_emoji(self):
15078 return self.emoji
15079 def set_emoji(self, emoji):
15080 self.emoji = emoji
15081 def add_emoji(self, value):
15082 self.emoji.append(value)
15083 def insert_emoji_at(self, index, value):
15084 self.emoji.insert(index, value)
15085 def replace_emoji_at(self, index, value):
15086 self.emoji[index] = value
15087 def get_linebreak(self):
15088 return self.linebreak
15089 def set_linebreak(self, linebreak):
15090 self.linebreak = linebreak
15091 def add_linebreak(self, value):
15092 self.linebreak.append(value)
15093 def insert_linebreak_at(self, index, value):
15094 self.linebreak.insert(index, value)
15095 def replace_linebreak_at(self, index, value):
15096 self.linebreak[index] = value
15097 def get_url(self):
15098 return self.url
15099 def set_url(self, url):
15100 self.url = url
15101 def get_valueOf_(self): return self.valueOf_
15102 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
15103 def hasContent_(self):
15104 if (
15105 self.ulink or
15106 self.bold or
15107 self.s or
15108 self.strike or
15109 self.underline or
15110 self.emphasis or
15111 self.computeroutput or
15112 self.subscript or
15113 self.superscript or
15114 self.center or
15115 self.small or
15116 self.cite or
15117 self.del_ or
15118 self.ins or
15119 self.htmlonly or
15120 self.manonly or
15121 self.xmlonly or
15122 self.rtfonly or
15123 self.latexonly or
15124 self.docbookonly or
15125 self.image or
15126 self.dot or
15127 self.msc or
15128 self.plantuml or
15129 self.anchor or
15130 self.formula or
15131 self.ref or
15132 self.emoji or
15133 self.linebreak or
15134 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
15135 self.content_
15136 ):
15137 return True
15138 else:
15139 return False
15140 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docURLLink', pretty_print=True):
15141 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docURLLink')
15142 if imported_ns_def_ is not None:
15143 namespacedef_ = imported_ns_def_
15144 if pretty_print:
15145 eol_ = '\n'
15146 else:
15147 eol_ = ''
15148 if self.original_tagname_ is not None and name_ == 'docURLLink':
15149 name_ = self.original_tagname_
15150 if UseCapturedNS_ and self.ns_prefix_:
15151 namespaceprefix_ = self.ns_prefix_ + ':'
15152 showIndent(outfile, level, pretty_print)
15153 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
15154 already_processed = set()
15155 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docURLLink')
15156 if self.hasContent_hasContent_():
15157 outfile.write('>%s' % (eol_, ))
15158 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docURLLink', pretty_print=pretty_print)
15159 showIndent(outfile, level, pretty_print)
15160 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
15161 else:
15162 outfile.write('/>%s' % (eol_, ))
15163 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docURLLink'):
15164 if self.url is not None and 'url' not in already_processed:
15165 already_processed.add('url')
15166 outfile.write(' url=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.url), input_name='url')), ))
15167 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docURLLink', fromsubclass_=False, pretty_print=True):
15168 if not fromsubclass_:
15169 for item_ in self.content_:
15170 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
15171 if pretty_print:
15172 eol_ = '\n'
15173 else:
15174 eol_ = ''
15175 for ulink_ in self.ulink:
15176 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
15177 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
15178 for bold_ in self.bold:
15179 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
15180 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
15181 for s_ in self.s:
15182 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
15183 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
15184 for strike_ in self.strike:
15185 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
15186 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
15187 for underline_ in self.underline:
15188 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
15189 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
15190 for emphasis_ in self.emphasis:
15191 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
15192 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
15193 for computeroutput_ in self.computeroutput:
15194 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
15195 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
15196 for subscript_ in self.subscript:
15197 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
15198 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
15199 for superscript_ in self.superscript:
15200 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
15201 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
15202 for center_ in self.center:
15203 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
15204 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
15205 for small_ in self.small:
15206 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
15207 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
15208 for cite_ in self.cite:
15209 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
15210 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
15211 for del_ in self.del_:
15212 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
15213 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
15214 for ins_ in self.ins:
15215 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
15216 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
15217 for htmlonly_ in self.htmlonly:
15218 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
15219 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
15220 for manonly_ in self.manonly:
15221 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
15222 showIndent(outfile, level, pretty_print)
15223 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
15224 for xmlonly_ in self.xmlonly:
15225 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
15226 showIndent(outfile, level, pretty_print)
15227 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
15228 for rtfonly_ in self.rtfonly:
15229 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
15230 showIndent(outfile, level, pretty_print)
15231 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
15232 for latexonly_ in self.latexonly:
15233 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
15234 showIndent(outfile, level, pretty_print)
15235 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
15236 for docbookonly_ in self.docbookonly:
15237 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
15238 showIndent(outfile, level, pretty_print)
15239 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
15240 for image_ in self.image:
15241 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
15242 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
15243 for dot_ in self.dot:
15244 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
15245 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
15246 for msc_ in self.msc:
15247 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
15248 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
15249 for plantuml_ in self.plantuml:
15250 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
15251 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
15252 for anchor_ in self.anchor:
15253 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
15254 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
15255 for formula_ in self.formula:
15256 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
15257 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
15258 for ref_ in self.ref:
15259 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
15260 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
15261 for emoji_ in self.emoji:
15262 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
15263 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
15264 for linebreak_ in self.linebreak:
15265 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
15266 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
15267 def build(self, node, gds_collector_=None):
15268 self.gds_collector_ = gds_collector_
15269 if SaveElementTreeNode:
15270 self.gds_elementtree_node_ = node
15271 already_processed = set()
15272 self.ns_prefix_ = node.prefix
15273 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
15274 self.valueOf_ = get_all_text_(node)
15275 if node.text is not None:
15276 obj_ = self.mixedclass_(MixedContainer.CategoryText,
15277 MixedContainer.TypeNone, '', node.text)
15278 self.content_.append(obj_)
15279 for child in node:
15280 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
15281 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
15282 return self
15283 def buildAttributes(self, node, attrs, already_processed):
15284 value = find_attr_value_('url', node)
15285 if value is not None and 'url' not in already_processed:
15286 already_processed.add('url')
15287 self.url = value
15288 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
15289 if nodeName_ == 'ulink':
15290 obj_ = docURLLink.factory(parent_object_=self)
15291 obj_.build(child_, gds_collector_=gds_collector_)
15292 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15293 MixedContainer.TypeNone, 'ulink', obj_)
15294 self.content_.append(obj_)
15295 if hasattr(self, 'add_ulink'):
15296 self.add_ulinkadd_ulink(obj_.value)
15297 elif hasattr(self, 'set_ulink'):
15298 self.set_ulinkset_ulink(obj_.value)
15299 elif nodeName_ == 'bold':
15300 obj_ = docMarkupType.factory(parent_object_=self)
15301 obj_.build(child_, gds_collector_=gds_collector_)
15302 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15303 MixedContainer.TypeNone, 'bold', obj_)
15304 self.content_.append(obj_)
15305 if hasattr(self, 'add_bold'):
15306 self.add_boldadd_bold(obj_.value)
15307 elif hasattr(self, 'set_bold'):
15308 self.set_boldset_bold(obj_.value)
15309 elif nodeName_ == 's':
15310 obj_ = docMarkupType.factory(parent_object_=self)
15311 obj_.build(child_, gds_collector_=gds_collector_)
15312 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15313 MixedContainer.TypeNone, 's', obj_)
15314 self.content_.append(obj_)
15315 if hasattr(self, 'add_s'):
15316 self.add_sadd_s(obj_.value)
15317 elif hasattr(self, 'set_s'):
15318 self.set_sset_s(obj_.value)
15319 elif nodeName_ == 'strike':
15320 obj_ = docMarkupType.factory(parent_object_=self)
15321 obj_.build(child_, gds_collector_=gds_collector_)
15322 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15323 MixedContainer.TypeNone, 'strike', obj_)
15324 self.content_.append(obj_)
15325 if hasattr(self, 'add_strike'):
15326 self.add_strikeadd_strike(obj_.value)
15327 elif hasattr(self, 'set_strike'):
15328 self.set_strikeset_strike(obj_.value)
15329 elif nodeName_ == 'underline':
15330 obj_ = docMarkupType.factory(parent_object_=self)
15331 obj_.build(child_, gds_collector_=gds_collector_)
15332 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15333 MixedContainer.TypeNone, 'underline', obj_)
15334 self.content_.append(obj_)
15335 if hasattr(self, 'add_underline'):
15336 self.add_underlineadd_underline(obj_.value)
15337 elif hasattr(self, 'set_underline'):
15338 self.set_underlineset_underline(obj_.value)
15339 elif nodeName_ == 'emphasis':
15340 obj_ = docMarkupType.factory(parent_object_=self)
15341 obj_.build(child_, gds_collector_=gds_collector_)
15342 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15343 MixedContainer.TypeNone, 'emphasis', obj_)
15344 self.content_.append(obj_)
15345 if hasattr(self, 'add_emphasis'):
15346 self.add_emphasisadd_emphasis(obj_.value)
15347 elif hasattr(self, 'set_emphasis'):
15348 self.set_emphasisset_emphasis(obj_.value)
15349 elif nodeName_ == 'computeroutput':
15350 obj_ = docMarkupType.factory(parent_object_=self)
15351 obj_.build(child_, gds_collector_=gds_collector_)
15352 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15353 MixedContainer.TypeNone, 'computeroutput', obj_)
15354 self.content_.append(obj_)
15355 if hasattr(self, 'add_computeroutput'):
15357 elif hasattr(self, 'set_computeroutput'):
15359 elif nodeName_ == 'subscript':
15360 obj_ = docMarkupType.factory(parent_object_=self)
15361 obj_.build(child_, gds_collector_=gds_collector_)
15362 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15363 MixedContainer.TypeNone, 'subscript', obj_)
15364 self.content_.append(obj_)
15365 if hasattr(self, 'add_subscript'):
15366 self.add_subscriptadd_subscript(obj_.value)
15367 elif hasattr(self, 'set_subscript'):
15368 self.set_subscriptset_subscript(obj_.value)
15369 elif nodeName_ == 'superscript':
15370 obj_ = docMarkupType.factory(parent_object_=self)
15371 obj_.build(child_, gds_collector_=gds_collector_)
15372 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15373 MixedContainer.TypeNone, 'superscript', obj_)
15374 self.content_.append(obj_)
15375 if hasattr(self, 'add_superscript'):
15376 self.add_superscriptadd_superscript(obj_.value)
15377 elif hasattr(self, 'set_superscript'):
15378 self.set_superscriptset_superscript(obj_.value)
15379 elif nodeName_ == 'center':
15380 obj_ = docMarkupType.factory(parent_object_=self)
15381 obj_.build(child_, gds_collector_=gds_collector_)
15382 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15383 MixedContainer.TypeNone, 'center', obj_)
15384 self.content_.append(obj_)
15385 if hasattr(self, 'add_center'):
15386 self.add_centeradd_center(obj_.value)
15387 elif hasattr(self, 'set_center'):
15388 self.set_centerset_center(obj_.value)
15389 elif nodeName_ == 'small':
15390 obj_ = docMarkupType.factory(parent_object_=self)
15391 obj_.build(child_, gds_collector_=gds_collector_)
15392 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15393 MixedContainer.TypeNone, 'small', obj_)
15394 self.content_.append(obj_)
15395 if hasattr(self, 'add_small'):
15396 self.add_smalladd_small(obj_.value)
15397 elif hasattr(self, 'set_small'):
15398 self.set_smallset_small(obj_.value)
15399 elif nodeName_ == 'cite':
15400 obj_ = docMarkupType.factory(parent_object_=self)
15401 obj_.build(child_, gds_collector_=gds_collector_)
15402 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15403 MixedContainer.TypeNone, 'cite', obj_)
15404 self.content_.append(obj_)
15405 if hasattr(self, 'add_cite'):
15406 self.add_citeadd_cite(obj_.value)
15407 elif hasattr(self, 'set_cite'):
15408 self.set_citeset_cite(obj_.value)
15409 elif nodeName_ == 'del':
15410 obj_ = docMarkupType.factory(parent_object_=self)
15411 obj_.build(child_, gds_collector_=gds_collector_)
15412 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15413 MixedContainer.TypeNone, 'del', obj_)
15414 self.content_.append(obj_)
15415 if hasattr(self, 'add_del'):
15416 self.add_deladd_del(obj_.value)
15417 elif hasattr(self, 'set_del'):
15418 self.set_delset_del(obj_.value)
15419 elif nodeName_ == 'ins':
15420 obj_ = docMarkupType.factory(parent_object_=self)
15421 obj_.build(child_, gds_collector_=gds_collector_)
15422 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15423 MixedContainer.TypeNone, 'ins', obj_)
15424 self.content_.append(obj_)
15425 if hasattr(self, 'add_ins'):
15426 self.add_insadd_ins(obj_.value)
15427 elif hasattr(self, 'set_ins'):
15428 self.set_insset_ins(obj_.value)
15429 elif nodeName_ == 'htmlonly':
15430 obj_ = docHtmlOnlyType.factory(parent_object_=self)
15431 obj_.build(child_, gds_collector_=gds_collector_)
15432 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15433 MixedContainer.TypeNone, 'htmlonly', obj_)
15434 self.content_.append(obj_)
15435 if hasattr(self, 'add_htmlonly'):
15436 self.add_htmlonlyadd_htmlonly(obj_.value)
15437 elif hasattr(self, 'set_htmlonly'):
15438 self.set_htmlonlyset_htmlonly(obj_.value)
15439 elif nodeName_ == 'manonly' and child_.text is not None:
15440 valuestr_ = child_.text
15441 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
15442 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
15443 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
15444 MixedContainer.TypeString, 'manonly', valuestr_)
15445 self.content_.append(obj_)
15446 self.manonly_nsprefix_ = child_.prefix
15447 elif nodeName_ == 'xmlonly' and child_.text is not None:
15448 valuestr_ = child_.text
15449 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
15450 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
15451 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
15452 MixedContainer.TypeString, 'xmlonly', valuestr_)
15453 self.content_.append(obj_)
15454 self.xmlonly_nsprefix_ = child_.prefix
15455 elif nodeName_ == 'rtfonly' and child_.text is not None:
15456 valuestr_ = child_.text
15457 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
15458 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
15459 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
15460 MixedContainer.TypeString, 'rtfonly', valuestr_)
15461 self.content_.append(obj_)
15462 self.rtfonly_nsprefix_ = child_.prefix
15463 elif nodeName_ == 'latexonly' and child_.text is not None:
15464 valuestr_ = child_.text
15465 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
15466 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
15467 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
15468 MixedContainer.TypeString, 'latexonly', valuestr_)
15469 self.content_.append(obj_)
15470 self.latexonly_nsprefix_ = child_.prefix
15471 elif nodeName_ == 'docbookonly' and child_.text is not None:
15472 valuestr_ = child_.text
15473 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
15474 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
15475 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
15476 MixedContainer.TypeString, 'docbookonly', valuestr_)
15477 self.content_.append(obj_)
15478 self.docbookonly_nsprefix_ = child_.prefix
15479 elif nodeName_ == 'image':
15480 obj_ = docImageType.factory(parent_object_=self)
15481 obj_.build(child_, gds_collector_=gds_collector_)
15482 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15483 MixedContainer.TypeNone, 'image', obj_)
15484 self.content_.append(obj_)
15485 if hasattr(self, 'add_image'):
15486 self.add_imageadd_image(obj_.value)
15487 elif hasattr(self, 'set_image'):
15488 self.set_imageset_image(obj_.value)
15489 elif nodeName_ == 'dot':
15490 obj_ = docDotMscType.factory(parent_object_=self)
15491 obj_.build(child_, gds_collector_=gds_collector_)
15492 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15493 MixedContainer.TypeNone, 'dot', obj_)
15494 self.content_.append(obj_)
15495 if hasattr(self, 'add_dot'):
15496 self.add_dotadd_dot(obj_.value)
15497 elif hasattr(self, 'set_dot'):
15498 self.set_dotset_dot(obj_.value)
15499 elif nodeName_ == 'msc':
15500 obj_ = docDotMscType.factory(parent_object_=self)
15501 obj_.build(child_, gds_collector_=gds_collector_)
15502 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15503 MixedContainer.TypeNone, 'msc', obj_)
15504 self.content_.append(obj_)
15505 if hasattr(self, 'add_msc'):
15506 self.add_mscadd_msc(obj_.value)
15507 elif hasattr(self, 'set_msc'):
15508 self.set_mscset_msc(obj_.value)
15509 elif nodeName_ == 'plantuml':
15510 obj_ = docPlantumlType.factory(parent_object_=self)
15511 obj_.build(child_, gds_collector_=gds_collector_)
15512 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15513 MixedContainer.TypeNone, 'plantuml', obj_)
15514 self.content_.append(obj_)
15515 if hasattr(self, 'add_plantuml'):
15516 self.add_plantumladd_plantuml(obj_.value)
15517 elif hasattr(self, 'set_plantuml'):
15518 self.set_plantumlset_plantuml(obj_.value)
15519 elif nodeName_ == 'anchor':
15520 obj_ = docAnchorType.factory(parent_object_=self)
15521 obj_.build(child_, gds_collector_=gds_collector_)
15522 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15523 MixedContainer.TypeNone, 'anchor', obj_)
15524 self.content_.append(obj_)
15525 if hasattr(self, 'add_anchor'):
15526 self.add_anchoradd_anchor(obj_.value)
15527 elif hasattr(self, 'set_anchor'):
15528 self.set_anchorset_anchor(obj_.value)
15529 elif nodeName_ == 'formula':
15530 obj_ = docFormulaType.factory(parent_object_=self)
15531 obj_.build(child_, gds_collector_=gds_collector_)
15532 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15533 MixedContainer.TypeNone, 'formula', obj_)
15534 self.content_.append(obj_)
15535 if hasattr(self, 'add_formula'):
15536 self.add_formulaadd_formula(obj_.value)
15537 elif hasattr(self, 'set_formula'):
15538 self.set_formulaset_formula(obj_.value)
15539 elif nodeName_ == 'ref':
15540 obj_ = docRefTextType.factory(parent_object_=self)
15541 obj_.build(child_, gds_collector_=gds_collector_)
15542 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15543 MixedContainer.TypeNone, 'ref', obj_)
15544 self.content_.append(obj_)
15545 if hasattr(self, 'add_ref'):
15546 self.add_refadd_ref(obj_.value)
15547 elif hasattr(self, 'set_ref'):
15548 self.set_refset_ref(obj_.value)
15549 elif nodeName_ == 'emoji':
15550 obj_ = docEmojiType.factory(parent_object_=self)
15551 obj_.build(child_, gds_collector_=gds_collector_)
15552 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15553 MixedContainer.TypeNone, 'emoji', obj_)
15554 self.content_.append(obj_)
15555 if hasattr(self, 'add_emoji'):
15556 self.add_emojiadd_emoji(obj_.value)
15557 elif hasattr(self, 'set_emoji'):
15558 self.set_emojiset_emoji(obj_.value)
15559 elif nodeName_ == 'linebreak':
15560 obj_ = docEmptyType.factory(parent_object_=self)
15561 obj_.build(child_, gds_collector_=gds_collector_)
15562 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
15563 MixedContainer.TypeNone, 'linebreak', obj_)
15564 self.content_.append(obj_)
15565 if hasattr(self, 'add_linebreak'):
15566 self.add_linebreakadd_linebreak(obj_.value)
15567 elif hasattr(self, 'set_linebreak'):
15568 self.set_linebreakset_linebreak(obj_.value)
15569 if not fromsubclass_ and child_.tail is not None:
15570 obj_ = self.mixedclass_(MixedContainer.CategoryText,
15571 MixedContainer.TypeNone, '', child_.tail)
15572 self.content_.append(obj_)
15573# end class docURLLink
15574
15575
15577 __hash__ = GeneratedsSuper.__hash__
15578 subclass = None
15579 superclass = None
15580 def __init__(self, id=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
15581 self.gds_collector_ = gds_collector_
15582 self.gds_elementtree_node_ = None
15583 self.original_tagname_ = None
15584 self.parent_object_ = kwargs_.get('parent_object_')
15585 self.ns_prefix_ = None
15586 self.id = _cast(None, id)
15587 self.id_nsprefix_ = None
15588 self.valueOf_ = valueOf_
15589 if mixedclass_ is None:
15590 self.mixedclass_ = MixedContainer
15591 else:
15592 self.mixedclass_ = mixedclass_
15593 if content_ is None:
15594 self.content_ = []
15595 else:
15596 self.content_ = content_
15597 self.valueOf_ = valueOf_
15598 def factory(*args_, **kwargs_):
15599 if CurrentSubclassModule_ is not None:
15600 subclass = getSubclassFromModule_(
15601 CurrentSubclassModule_, docAnchorType)
15602 if subclass is not None:
15603 return subclass(*args_, **kwargs_)
15604 if docAnchorType.subclass:
15605 return docAnchorType.subclass(*args_, **kwargs_)
15606 else:
15607 return docAnchorType(*args_, **kwargs_)
15608 factory = staticmethod(factory)
15610 return self.ns_prefix_
15611 def set_ns_prefix_(self, ns_prefix):
15612 self.ns_prefix_ = ns_prefix
15613 def get_id(self):
15614 return self.id
15615 def set_id(self, id):
15616 self.id = id
15617 def get_valueOf_(self): return self.valueOf_
15618 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
15619 def hasContent_(self):
15620 if (
15621 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
15622 self.content_
15623 ):
15624 return True
15625 else:
15626 return False
15627 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docAnchorType', pretty_print=True):
15628 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docAnchorType')
15629 if imported_ns_def_ is not None:
15630 namespacedef_ = imported_ns_def_
15631 if pretty_print:
15632 eol_ = '\n'
15633 else:
15634 eol_ = ''
15635 if self.original_tagname_ is not None and name_ == 'docAnchorType':
15636 name_ = self.original_tagname_
15637 if UseCapturedNS_ and self.ns_prefix_:
15638 namespaceprefix_ = self.ns_prefix_ + ':'
15639 showIndent(outfile, level, pretty_print)
15640 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
15641 already_processed = set()
15642 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docAnchorType')
15643 outfile.write('>')
15644 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_, pretty_print=pretty_print)
15645 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
15646 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
15647 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docAnchorType'):
15648 if self.id is not None and 'id' not in already_processed:
15649 already_processed.add('id')
15650 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
15651 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docAnchorType', fromsubclass_=False, pretty_print=True):
15652 pass
15653 def build(self, node, gds_collector_=None):
15654 self.gds_collector_ = gds_collector_
15655 if SaveElementTreeNode:
15656 self.gds_elementtree_node_ = node
15657 already_processed = set()
15658 self.ns_prefix_ = node.prefix
15659 self.buildAttributes(node, node.attrib, already_processed)
15660 self.valueOf_ = get_all_text_(node)
15661 if node.text is not None:
15662 obj_ = self.mixedclass_(MixedContainer.CategoryText,
15663 MixedContainer.TypeNone, '', node.text)
15664 self.content_.append(obj_)
15665 for child in node:
15666 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
15667 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
15668 return self
15669 def buildAttributes(self, node, attrs, already_processed):
15670 value = find_attr_value_('id', node)
15671 if value is not None and 'id' not in already_processed:
15672 already_processed.add('id')
15673 self.id = value
15674 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
15675 if not fromsubclass_ and child_.tail is not None:
15676 obj_ = self.mixedclass_(MixedContainer.CategoryText,
15677 MixedContainer.TypeNone, '', child_.tail)
15678 self.content_.append(obj_)
15679 pass
15680# end class docAnchorType
15681
15682
15684 __hash__ = GeneratedsSuper.__hash__
15685 subclass = None
15686 superclass = None
15687 def __init__(self, id=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
15688 self.gds_collector_ = gds_collector_
15689 self.gds_elementtree_node_ = None
15690 self.original_tagname_ = None
15691 self.parent_object_ = kwargs_.get('parent_object_')
15692 self.ns_prefix_ = None
15693 self.id = _cast(None, id)
15694 self.id_nsprefix_ = None
15695 self.valueOf_ = valueOf_
15696 if mixedclass_ is None:
15697 self.mixedclass_ = MixedContainer
15698 else:
15699 self.mixedclass_ = mixedclass_
15700 if content_ is None:
15701 self.content_ = []
15702 else:
15703 self.content_ = content_
15704 self.valueOf_ = valueOf_
15705 def factory(*args_, **kwargs_):
15706 if CurrentSubclassModule_ is not None:
15707 subclass = getSubclassFromModule_(
15708 CurrentSubclassModule_, docFormulaType)
15709 if subclass is not None:
15710 return subclass(*args_, **kwargs_)
15711 if docFormulaType.subclass:
15712 return docFormulaType.subclass(*args_, **kwargs_)
15713 else:
15714 return docFormulaType(*args_, **kwargs_)
15715 factory = staticmethod(factory)
15717 return self.ns_prefix_
15718 def set_ns_prefix_(self, ns_prefix):
15719 self.ns_prefix_ = ns_prefix
15720 def get_id(self):
15721 return self.id
15722 def set_id(self, id):
15723 self.id = id
15724 def get_valueOf_(self): return self.valueOf_
15725 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
15726 def hasContent_(self):
15727 if (
15728 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
15729 self.content_
15730 ):
15731 return True
15732 else:
15733 return False
15734 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docFormulaType', pretty_print=True):
15735 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docFormulaType')
15736 if imported_ns_def_ is not None:
15737 namespacedef_ = imported_ns_def_
15738 if pretty_print:
15739 eol_ = '\n'
15740 else:
15741 eol_ = ''
15742 if self.original_tagname_ is not None and name_ == 'docFormulaType':
15743 name_ = self.original_tagname_
15744 if UseCapturedNS_ and self.ns_prefix_:
15745 namespaceprefix_ = self.ns_prefix_ + ':'
15746 showIndent(outfile, level, pretty_print)
15747 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
15748 already_processed = set()
15749 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docFormulaType')
15750 outfile.write('>')
15751 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_, pretty_print=pretty_print)
15752 outfile.write(self.convert_unicodeconvert_unicode(self.valueOf_))
15753 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
15754 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docFormulaType'):
15755 if self.id is not None and 'id' not in already_processed:
15756 already_processed.add('id')
15757 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
15758 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docFormulaType', fromsubclass_=False, pretty_print=True):
15759 pass
15760 def build(self, node, gds_collector_=None):
15761 self.gds_collector_ = gds_collector_
15762 if SaveElementTreeNode:
15763 self.gds_elementtree_node_ = node
15764 already_processed = set()
15765 self.ns_prefix_ = node.prefix
15766 self.buildAttributes(node, node.attrib, already_processed)
15767 self.valueOf_ = get_all_text_(node)
15768 if node.text is not None:
15769 obj_ = self.mixedclass_(MixedContainer.CategoryText,
15770 MixedContainer.TypeNone, '', node.text)
15771 self.content_.append(obj_)
15772 for child in node:
15773 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
15774 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
15775 return self
15776 def buildAttributes(self, node, attrs, already_processed):
15777 value = find_attr_value_('id', node)
15778 if value is not None and 'id' not in already_processed:
15779 already_processed.add('id')
15780 self.id = value
15781 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
15782 if not fromsubclass_ and child_.tail is not None:
15783 obj_ = self.mixedclass_(MixedContainer.CategoryText,
15784 MixedContainer.TypeNone, '', child_.tail)
15785 self.content_.append(obj_)
15786 pass
15787# end class docFormulaType
15788
15789
15791 __hash__ = GeneratedsSuper.__hash__
15792 subclass = None
15793 superclass = None
15794 def __init__(self, primaryie=None, secondaryie=None, gds_collector_=None, **kwargs_):
15795 self.gds_collector_ = gds_collector_
15796 self.gds_elementtree_node_ = None
15797 self.original_tagname_ = None
15798 self.parent_object_ = kwargs_.get('parent_object_')
15799 self.ns_prefix_ = None
15800 self.primaryie = primaryie
15801 self.primaryie_nsprefix_ = None
15802 self.secondaryie = secondaryie
15803 self.secondaryie_nsprefix_ = None
15804 def factory(*args_, **kwargs_):
15805 if CurrentSubclassModule_ is not None:
15806 subclass = getSubclassFromModule_(
15807 CurrentSubclassModule_, docIndexEntryType)
15808 if subclass is not None:
15809 return subclass(*args_, **kwargs_)
15810 if docIndexEntryType.subclass:
15811 return docIndexEntryType.subclass(*args_, **kwargs_)
15812 else:
15813 return docIndexEntryType(*args_, **kwargs_)
15814 factory = staticmethod(factory)
15816 return self.ns_prefix_
15817 def set_ns_prefix_(self, ns_prefix):
15818 self.ns_prefix_ = ns_prefix
15819 def get_primaryie(self):
15820 return self.primaryie
15821 def set_primaryie(self, primaryie):
15822 self.primaryie = primaryie
15824 return self.secondaryie
15825 def set_secondaryie(self, secondaryie):
15826 self.secondaryie = secondaryie
15827 def hasContent_(self):
15828 if (
15829 self.primaryie is not None or
15830 self.secondaryie is not None
15831 ):
15832 return True
15833 else:
15834 return False
15835 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docIndexEntryType', pretty_print=True):
15836 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docIndexEntryType')
15837 if imported_ns_def_ is not None:
15838 namespacedef_ = imported_ns_def_
15839 if pretty_print:
15840 eol_ = '\n'
15841 else:
15842 eol_ = ''
15843 if self.original_tagname_ is not None and name_ == 'docIndexEntryType':
15844 name_ = self.original_tagname_
15845 if UseCapturedNS_ and self.ns_prefix_:
15846 namespaceprefix_ = self.ns_prefix_ + ':'
15847 showIndent(outfile, level, pretty_print)
15848 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
15849 already_processed = set()
15850 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docIndexEntryType')
15851 if self.hasContent_hasContent_():
15852 outfile.write('>%s' % (eol_, ))
15853 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docIndexEntryType', pretty_print=pretty_print)
15854 showIndent(outfile, level, pretty_print)
15855 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
15856 else:
15857 outfile.write('/>%s' % (eol_, ))
15858 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docIndexEntryType'):
15859 pass
15860 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docIndexEntryType', fromsubclass_=False, pretty_print=True):
15861 if pretty_print:
15862 eol_ = '\n'
15863 else:
15864 eol_ = ''
15865 if self.primaryie is not None:
15866 namespaceprefix_ = self.primaryie_nsprefix_ + ':' if (UseCapturedNS_ and self.primaryie_nsprefix_) else ''
15867 showIndent(outfile, level, pretty_print)
15868 outfile.write('<%sprimaryie>%s</%sprimaryie>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.primaryie), input_name='primaryie')), namespaceprefix_ , eol_))
15869 if self.secondaryie is not None:
15870 namespaceprefix_ = self.secondaryie_nsprefix_ + ':' if (UseCapturedNS_ and self.secondaryie_nsprefix_) else ''
15871 showIndent(outfile, level, pretty_print)
15872 outfile.write('<%ssecondaryie>%s</%ssecondaryie>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.secondaryie), input_name='secondaryie')), namespaceprefix_ , eol_))
15873 def build(self, node, gds_collector_=None):
15874 self.gds_collector_ = gds_collector_
15875 if SaveElementTreeNode:
15876 self.gds_elementtree_node_ = node
15877 already_processed = set()
15878 self.ns_prefix_ = node.prefix
15879 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
15880 for child in node:
15881 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
15882 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
15883 return self
15884 def buildAttributes(self, node, attrs, already_processed):
15885 pass
15886 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
15887 if nodeName_ == 'primaryie':
15888 value_ = child_.text
15889 value_ = self.gds_parse_string(value_, node, 'primaryie')
15890 value_ = self.gds_validate_string(value_, node, 'primaryie')
15891 self.primaryie = value_
15892 self.primaryie_nsprefix_ = child_.prefix
15893 elif nodeName_ == 'secondaryie':
15894 value_ = child_.text
15895 value_ = self.gds_parse_string(value_, node, 'secondaryie')
15896 value_ = self.gds_validate_string(value_, node, 'secondaryie')
15897 self.secondaryie = value_
15898 self.secondaryie_nsprefix_ = child_.prefix
15899# end class docIndexEntryType
15900
15901
15902class docListType(GeneratedsSuper):
15903 __hash__ = GeneratedsSuper.__hash__
15904 subclass = None
15905 superclass = None
15906 def __init__(self, type_=None, start=None, listitem=None, gds_collector_=None, **kwargs_):
15907 self.gds_collector_ = gds_collector_
15908 self.gds_elementtree_node_ = None
15909 self.original_tagname_ = None
15910 self.parent_object_ = kwargs_.get('parent_object_')
15911 self.ns_prefix_ = None
15912 self.type_ = _cast(None, type_)
15913 self.type__nsprefix_ = None
15914 self.start = _cast(int, start)
15915 self.start_nsprefix_ = None
15916 if listitem is None:
15917 self.listitem = []
15918 else:
15919 self.listitem = listitem
15920 self.listitem_nsprefix_ = None
15921 def factory(*args_, **kwargs_):
15922 if CurrentSubclassModule_ is not None:
15923 subclass = getSubclassFromModule_(
15924 CurrentSubclassModule_, docListType)
15925 if subclass is not None:
15926 return subclass(*args_, **kwargs_)
15927 if docListType.subclass:
15928 return docListType.subclass(*args_, **kwargs_)
15929 else:
15930 return docListType(*args_, **kwargs_)
15931 factory = staticmethod(factory)
15933 return self.ns_prefix_
15934 def set_ns_prefix_(self, ns_prefix):
15935 self.ns_prefix_ = ns_prefix
15936 def get_listitem(self):
15937 return self.listitem
15938 def set_listitem(self, listitem):
15939 self.listitem = listitem
15940 def add_listitem(self, value):
15941 self.listitem.append(value)
15942 def insert_listitem_at(self, index, value):
15943 self.listitem.insert(index, value)
15944 def replace_listitem_at(self, index, value):
15945 self.listitem[index] = value
15946 def get_type(self):
15947 return self.type_
15948 def set_type(self, type_):
15949 self.type_ = type_
15950 def get_start(self):
15951 return self.start
15952 def set_start(self, start):
15953 self.start = start
15954 def validate_DoxOlType(self, value):
15955 # Validate type DoxOlType, a restriction on xsd:string.
15956 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
15957 if not isinstance(value, str):
15959 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
15960 return False
15961 value = value
15962 enumerations = ['1', 'a', 'A', 'i', 'I']
15963 if value not in enumerations:
15965 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxOlType' % {"value" : encode_str_2_3(value), "lineno": lineno} )
15966 result = False
15967 def hasContent_(self):
15968 if (
15969 self.listitem
15970 ):
15971 return True
15972 else:
15973 return False
15974 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListType', pretty_print=True):
15975 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docListType')
15976 if imported_ns_def_ is not None:
15977 namespacedef_ = imported_ns_def_
15978 if pretty_print:
15979 eol_ = '\n'
15980 else:
15981 eol_ = ''
15982 if self.original_tagname_ is not None and name_ == 'docListType':
15983 name_ = self.original_tagname_
15984 if UseCapturedNS_ and self.ns_prefix_:
15985 namespaceprefix_ = self.ns_prefix_ + ':'
15986 showIndent(outfile, level, pretty_print)
15987 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
15988 already_processed = set()
15989 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docListType')
15990 if self.hasContent_hasContent_():
15991 outfile.write('>%s' % (eol_, ))
15992 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docListType', pretty_print=pretty_print)
15993 showIndent(outfile, level, pretty_print)
15994 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
15995 else:
15996 outfile.write('/>%s' % (eol_, ))
15997 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docListType'):
15998 if self.type_ is not None and 'type_' not in already_processed:
15999 already_processed.add('type_')
16000 outfile.write(' type=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.type_), input_name='type')), ))
16001 if self.start is not None and 'start' not in already_processed:
16002 already_processed.add('start')
16003 outfile.write(' start="%s"' % self.gds_format_integergds_format_integer(self.start, input_name='start'))
16004 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListType', fromsubclass_=False, pretty_print=True):
16005 if pretty_print:
16006 eol_ = '\n'
16007 else:
16008 eol_ = ''
16009 for listitem_ in self.listitem:
16010 namespaceprefix_ = self.listitem_nsprefix_ + ':' if (UseCapturedNS_ and self.listitem_nsprefix_) else ''
16011 listitem_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='listitem', pretty_print=pretty_print)
16012 def build(self, node, gds_collector_=None):
16013 self.gds_collector_ = gds_collector_
16014 if SaveElementTreeNode:
16015 self.gds_elementtree_node_ = node
16016 already_processed = set()
16017 self.ns_prefix_ = node.prefix
16018 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
16019 for child in node:
16020 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
16021 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
16022 return self
16023 def buildAttributes(self, node, attrs, already_processed):
16024 value = find_attr_value_('type', node)
16025 if value is not None and 'type' not in already_processed:
16026 already_processed.add('type')
16027 self.type_ = value
16028 self.validate_DoxOlTypevalidate_DoxOlType(self.type_) # validate type DoxOlType
16029 value = find_attr_value_('start', node)
16030 if value is not None and 'start' not in already_processed:
16031 already_processed.add('start')
16032 self.start = self.gds_parse_integergds_parse_integer(value, node, 'start')
16033 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
16034 if nodeName_ == 'listitem':
16035 obj_ = docListItemType.factory(parent_object_=self)
16036 obj_.build(child_, gds_collector_=gds_collector_)
16037 self.listitem.append(obj_)
16038 obj_.original_tagname_ = 'listitem'
16039# end class docListType
16040
16041
16043 __hash__ = GeneratedsSuper.__hash__
16044 subclass = None
16045 superclass = None
16046 def __init__(self, value=None, para=None, gds_collector_=None, **kwargs_):
16047 self.gds_collector_ = gds_collector_
16048 self.gds_elementtree_node_ = None
16049 self.original_tagname_ = None
16050 self.parent_object_ = kwargs_.get('parent_object_')
16051 self.ns_prefix_ = None
16052 self.value = _cast(int, value)
16053 self.value_nsprefix_ = None
16054 if para is None:
16055 self.para = []
16056 else:
16057 self.para = para
16058 self.para_nsprefix_ = None
16059 def factory(*args_, **kwargs_):
16060 if CurrentSubclassModule_ is not None:
16061 subclass = getSubclassFromModule_(
16062 CurrentSubclassModule_, docListItemType)
16063 if subclass is not None:
16064 return subclass(*args_, **kwargs_)
16065 if docListItemType.subclass:
16066 return docListItemType.subclass(*args_, **kwargs_)
16067 else:
16068 return docListItemType(*args_, **kwargs_)
16069 factory = staticmethod(factory)
16071 return self.ns_prefix_
16072 def set_ns_prefix_(self, ns_prefix):
16073 self.ns_prefix_ = ns_prefix
16074 def get_para(self):
16075 return self.para
16076 def set_para(self, para):
16077 self.para = para
16078 def add_para(self, value):
16079 self.para.append(value)
16080 def insert_para_at(self, index, value):
16081 self.para.insert(index, value)
16082 def replace_para_at(self, index, value):
16083 self.para[index] = value
16084 def get_value(self):
16085 return self.value
16086 def set_value(self, value):
16087 self.value = value
16088 def hasContent_(self):
16089 if (
16090 self.para
16091 ):
16092 return True
16093 else:
16094 return False
16095 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListItemType', pretty_print=True):
16096 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docListItemType')
16097 if imported_ns_def_ is not None:
16098 namespacedef_ = imported_ns_def_
16099 if pretty_print:
16100 eol_ = '\n'
16101 else:
16102 eol_ = ''
16103 if self.original_tagname_ is not None and name_ == 'docListItemType':
16104 name_ = self.original_tagname_
16105 if UseCapturedNS_ and self.ns_prefix_:
16106 namespaceprefix_ = self.ns_prefix_ + ':'
16107 showIndent(outfile, level, pretty_print)
16108 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
16109 already_processed = set()
16110 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docListItemType')
16111 if self.hasContent_hasContent_():
16112 outfile.write('>%s' % (eol_, ))
16113 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docListItemType', pretty_print=pretty_print)
16114 showIndent(outfile, level, pretty_print)
16115 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
16116 else:
16117 outfile.write('/>%s' % (eol_, ))
16118 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docListItemType'):
16119 if self.value is not None and 'value' not in already_processed:
16120 already_processed.add('value')
16121 outfile.write(' value="%s"' % self.gds_format_integergds_format_integer(self.value, input_name='value'))
16122 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListItemType', fromsubclass_=False, pretty_print=True):
16123 if pretty_print:
16124 eol_ = '\n'
16125 else:
16126 eol_ = ''
16127 for para_ in self.para:
16128 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
16129 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
16130 def build(self, node, gds_collector_=None):
16131 self.gds_collector_ = gds_collector_
16132 if SaveElementTreeNode:
16133 self.gds_elementtree_node_ = node
16134 already_processed = set()
16135 self.ns_prefix_ = node.prefix
16136 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
16137 for child in node:
16138 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
16139 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
16140 return self
16141 def buildAttributes(self, node, attrs, already_processed):
16142 value = find_attr_value_('value', node)
16143 if value is not None and 'value' not in already_processed:
16144 already_processed.add('value')
16145 self.value = self.gds_parse_integergds_parse_integer(value, node, 'value')
16146 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
16147 if nodeName_ == 'para':
16148 obj_ = docParaType.factory(parent_object_=self)
16149 obj_.build(child_, gds_collector_=gds_collector_)
16150 self.para.append(obj_)
16151 obj_.original_tagname_ = 'para'
16152# end class docListItemType
16153
16154
16156 __hash__ = GeneratedsSuper.__hash__
16157 subclass = None
16158 superclass = None
16159 def __init__(self, kind=None, title=None, para=None, gds_collector_=None, **kwargs_):
16160 self.gds_collector_ = gds_collector_
16161 self.gds_elementtree_node_ = None
16162 self.original_tagname_ = None
16163 self.parent_object_ = kwargs_.get('parent_object_')
16164 self.ns_prefix_ = None
16165 self.kind = _cast(None, kind)
16166 self.kind_nsprefix_ = None
16167 self.title = title
16168 self.title_nsprefix_ = None
16169 if para is None:
16170 self.para = []
16171 else:
16172 self.para = para
16173 self.para_nsprefix_ = None
16174 def factory(*args_, **kwargs_):
16175 if CurrentSubclassModule_ is not None:
16176 subclass = getSubclassFromModule_(
16177 CurrentSubclassModule_, docSimpleSectType)
16178 if subclass is not None:
16179 return subclass(*args_, **kwargs_)
16180 if docSimpleSectType.subclass:
16181 return docSimpleSectType.subclass(*args_, **kwargs_)
16182 else:
16183 return docSimpleSectType(*args_, **kwargs_)
16184 factory = staticmethod(factory)
16186 return self.ns_prefix_
16187 def set_ns_prefix_(self, ns_prefix):
16188 self.ns_prefix_ = ns_prefix
16189 def get_title(self):
16190 return self.title
16191 def set_title(self, title):
16192 self.title = title
16193 def get_para(self):
16194 return self.para
16195 def set_para(self, para):
16196 self.para = para
16197 def add_para(self, value):
16198 self.para.append(value)
16199 def insert_para_at(self, index, value):
16200 self.para.insert(index, value)
16201 def replace_para_at(self, index, value):
16202 self.para[index] = value
16203 def get_kind(self):
16204 return self.kind
16205 def set_kind(self, kind):
16206 self.kind = kind
16208 # Validate type DoxSimpleSectKind, a restriction on xsd:string.
16209 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
16210 if not isinstance(value, str):
16212 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
16213 return False
16214 value = value
16215 enumerations = ['see', 'return', 'author', 'authors', 'version', 'since', 'date', 'note', 'warning', 'pre', 'post', 'copyright', 'invariant', 'remark', 'attention', 'par', 'rcs']
16216 if value not in enumerations:
16218 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxSimpleSectKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
16219 result = False
16220 def hasContent_(self):
16221 if (
16222 self.title is not None or
16223 self.para
16224 ):
16225 return True
16226 else:
16227 return False
16228 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSimpleSectType', pretty_print=True):
16229 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docSimpleSectType')
16230 if imported_ns_def_ is not None:
16231 namespacedef_ = imported_ns_def_
16232 if pretty_print:
16233 eol_ = '\n'
16234 else:
16235 eol_ = ''
16236 if self.original_tagname_ is not None and name_ == 'docSimpleSectType':
16237 name_ = self.original_tagname_
16238 if UseCapturedNS_ and self.ns_prefix_:
16239 namespaceprefix_ = self.ns_prefix_ + ':'
16240 showIndent(outfile, level, pretty_print)
16241 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
16242 already_processed = set()
16243 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docSimpleSectType')
16244 if self.hasContent_hasContent_():
16245 outfile.write('>%s' % (eol_, ))
16246 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docSimpleSectType', pretty_print=pretty_print)
16247 showIndent(outfile, level, pretty_print)
16248 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
16249 else:
16250 outfile.write('/>%s' % (eol_, ))
16251 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSimpleSectType'):
16252 if self.kind is not None and 'kind' not in already_processed:
16253 already_processed.add('kind')
16254 outfile.write(' kind=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kind), input_name='kind')), ))
16255 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSimpleSectType', fromsubclass_=False, pretty_print=True):
16256 if pretty_print:
16257 eol_ = '\n'
16258 else:
16259 eol_ = ''
16260 if self.title is not None:
16261 namespaceprefix_ = self.title_nsprefix_ + ':' if (UseCapturedNS_ and self.title_nsprefix_) else ''
16262 self.title.export(outfile, level, namespaceprefix_, namespacedef_='', name_='title', pretty_print=pretty_print)
16263 for para_ in self.para:
16264 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
16265 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
16266 def build(self, node, gds_collector_=None):
16267 self.gds_collector_ = gds_collector_
16268 if SaveElementTreeNode:
16269 self.gds_elementtree_node_ = node
16270 already_processed = set()
16271 self.ns_prefix_ = node.prefix
16272 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
16273 for child in node:
16274 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
16275 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
16276 return self
16277 def buildAttributes(self, node, attrs, already_processed):
16278 value = find_attr_value_('kind', node)
16279 if value is not None and 'kind' not in already_processed:
16280 already_processed.add('kind')
16281 self.kind = value
16282 self.validate_DoxSimpleSectKindvalidate_DoxSimpleSectKind(self.kind) # validate type DoxSimpleSectKind
16283 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
16284 if nodeName_ == 'title':
16285 obj_ = docTitleType.factory(parent_object_=self)
16286 obj_.build(child_, gds_collector_=gds_collector_)
16287 self.title = obj_
16288 obj_.original_tagname_ = 'title'
16289 elif nodeName_ == 'para':
16290 obj_ = docParaType.factory(parent_object_=self)
16291 obj_.build(child_, gds_collector_=gds_collector_)
16292 self.para.append(obj_)
16293 obj_.original_tagname_ = 'para'
16294# end class docSimpleSectType
16295
16296
16298 __hash__ = GeneratedsSuper.__hash__
16299 subclass = None
16300 superclass = None
16301 def __init__(self, term=None, gds_collector_=None, **kwargs_):
16302 self.gds_collector_ = gds_collector_
16303 self.gds_elementtree_node_ = None
16304 self.original_tagname_ = None
16305 self.parent_object_ = kwargs_.get('parent_object_')
16306 self.ns_prefix_ = None
16307 self.term = term
16308 self.term_nsprefix_ = None
16309 def factory(*args_, **kwargs_):
16310 if CurrentSubclassModule_ is not None:
16311 subclass = getSubclassFromModule_(
16312 CurrentSubclassModule_, docVarListEntryType)
16313 if subclass is not None:
16314 return subclass(*args_, **kwargs_)
16315 if docVarListEntryType.subclass:
16316 return docVarListEntryType.subclass(*args_, **kwargs_)
16317 else:
16318 return docVarListEntryType(*args_, **kwargs_)
16319 factory = staticmethod(factory)
16321 return self.ns_prefix_
16322 def set_ns_prefix_(self, ns_prefix):
16323 self.ns_prefix_ = ns_prefix
16324 def get_term(self):
16325 return self.term
16326 def set_term(self, term):
16327 self.term = term
16328 def hasContent_(self):
16329 if (
16330 self.term is not None
16331 ):
16332 return True
16333 else:
16334 return False
16335 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVarListEntryType', pretty_print=True):
16336 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docVarListEntryType')
16337 if imported_ns_def_ is not None:
16338 namespacedef_ = imported_ns_def_
16339 if pretty_print:
16340 eol_ = '\n'
16341 else:
16342 eol_ = ''
16343 if self.original_tagname_ is not None and name_ == 'docVarListEntryType':
16344 name_ = self.original_tagname_
16345 if UseCapturedNS_ and self.ns_prefix_:
16346 namespaceprefix_ = self.ns_prefix_ + ':'
16347 showIndent(outfile, level, pretty_print)
16348 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
16349 already_processed = set()
16350 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docVarListEntryType')
16351 if self.hasContent_hasContent_():
16352 outfile.write('>%s' % (eol_, ))
16353 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docVarListEntryType', pretty_print=pretty_print)
16354 showIndent(outfile, level, pretty_print)
16355 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
16356 else:
16357 outfile.write('/>%s' % (eol_, ))
16358 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docVarListEntryType'):
16359 pass
16360 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVarListEntryType', fromsubclass_=False, pretty_print=True):
16361 if pretty_print:
16362 eol_ = '\n'
16363 else:
16364 eol_ = ''
16365 if self.term is not None:
16366 namespaceprefix_ = self.term_nsprefix_ + ':' if (UseCapturedNS_ and self.term_nsprefix_) else ''
16367 self.term.export(outfile, level, namespaceprefix_, namespacedef_='', name_='term', pretty_print=pretty_print)
16368 def build(self, node, gds_collector_=None):
16369 self.gds_collector_ = gds_collector_
16370 if SaveElementTreeNode:
16371 self.gds_elementtree_node_ = node
16372 already_processed = set()
16373 self.ns_prefix_ = node.prefix
16374 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
16375 for child in node:
16376 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
16377 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
16378 return self
16379 def buildAttributes(self, node, attrs, already_processed):
16380 pass
16381 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
16382 if nodeName_ == 'term':
16383 obj_ = docTitleType.factory(parent_object_=self)
16384 obj_.build(child_, gds_collector_=gds_collector_)
16385 self.term = obj_
16386 obj_.original_tagname_ = 'term'
16387# end class docVarListEntryType
16388
16389
16390class docVariableListType(GeneratedsSuper):
16391 __hash__ = GeneratedsSuper.__hash__
16392 subclass = None
16393 superclass = None
16394 def __init__(self, varlistentry=None, listitem=None, gds_collector_=None, **kwargs_):
16395 self.gds_collector_ = gds_collector_
16396 self.gds_elementtree_node_ = None
16397 self.original_tagname_ = None
16398 self.parent_object_ = kwargs_.get('parent_object_')
16399 self.ns_prefix_ = None
16400 if varlistentry is None:
16401 self.varlistentry = []
16402 else:
16403 self.varlistentry = varlistentry
16404 self.varlistentry_nsprefix_ = None
16405 if listitem is None:
16406 self.listitem = []
16407 else:
16408 self.listitem = listitem
16409 self.listitem_nsprefix_ = None
16410 def factory(*args_, **kwargs_):
16411 if CurrentSubclassModule_ is not None:
16412 subclass = getSubclassFromModule_(
16413 CurrentSubclassModule_, docVariableListType)
16414 if subclass is not None:
16415 return subclass(*args_, **kwargs_)
16416 if docVariableListType.subclass:
16417 return docVariableListType.subclass(*args_, **kwargs_)
16418 else:
16419 return docVariableListType(*args_, **kwargs_)
16420 factory = staticmethod(factory)
16422 return self.ns_prefix_
16423 def set_ns_prefix_(self, ns_prefix):
16424 self.ns_prefix_ = ns_prefix
16426 return self.varlistentry
16427 def set_varlistentry(self, varlistentry):
16428 self.varlistentry = varlistentry
16429 def add_varlistentry(self, value):
16430 self.varlistentry.append(value)
16431 def insert_varlistentry_at(self, index, value):
16432 self.varlistentry.insert(index, value)
16433 def replace_varlistentry_at(self, index, value):
16434 self.varlistentry[index] = value
16435 def get_listitem(self):
16436 return self.listitem
16437 def set_listitem(self, listitem):
16438 self.listitem = listitem
16439 def add_listitem(self, value):
16440 self.listitem.append(value)
16441 def insert_listitem_at(self, index, value):
16442 self.listitem.insert(index, value)
16443 def replace_listitem_at(self, index, value):
16444 self.listitem[index] = value
16445 def hasContent_(self):
16446 if (
16447 self.varlistentry or
16448 self.listitem
16449 ):
16450 return True
16451 else:
16452 return False
16453 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVariableListType', pretty_print=True):
16454 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docVariableListType')
16455 if imported_ns_def_ is not None:
16456 namespacedef_ = imported_ns_def_
16457 if pretty_print:
16458 eol_ = '\n'
16459 else:
16460 eol_ = ''
16461 if self.original_tagname_ is not None and name_ == 'docVariableListType':
16462 name_ = self.original_tagname_
16463 if UseCapturedNS_ and self.ns_prefix_:
16464 namespaceprefix_ = self.ns_prefix_ + ':'
16465 showIndent(outfile, level, pretty_print)
16466 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
16467 already_processed = set()
16468 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docVariableListType')
16469 if self.hasContent_hasContent_():
16470 outfile.write('>%s' % (eol_, ))
16471 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docVariableListType', pretty_print=pretty_print)
16472 showIndent(outfile, level, pretty_print)
16473 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
16474 else:
16475 outfile.write('/>%s' % (eol_, ))
16476 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docVariableListType'):
16477 pass
16478 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVariableListType', fromsubclass_=False, pretty_print=True):
16479 if pretty_print:
16480 eol_ = '\n'
16481 else:
16482 eol_ = ''
16483 for varlistentry_ in self.varlistentry:
16484 namespaceprefix_ = self.varlistentry_nsprefix_ + ':' if (UseCapturedNS_ and self.varlistentry_nsprefix_) else ''
16485 varlistentry_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='varlistentry', pretty_print=pretty_print)
16486 for listitem_ in self.listitem:
16487 namespaceprefix_ = self.listitem_nsprefix_ + ':' if (UseCapturedNS_ and self.listitem_nsprefix_) else ''
16488 listitem_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='listitem', pretty_print=pretty_print)
16489 def build(self, node, gds_collector_=None):
16490 self.gds_collector_ = gds_collector_
16491 if SaveElementTreeNode:
16492 self.gds_elementtree_node_ = node
16493 already_processed = set()
16494 self.ns_prefix_ = node.prefix
16495 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
16496 for child in node:
16497 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
16498 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
16499 return self
16500 def buildAttributes(self, node, attrs, already_processed):
16501 pass
16502 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
16503 if nodeName_ == 'varlistentry':
16504 obj_ = docVarListEntryType.factory(parent_object_=self)
16505 obj_.build(child_, gds_collector_=gds_collector_)
16506 self.varlistentry.append(obj_)
16507 obj_.original_tagname_ = 'varlistentry'
16508 elif nodeName_ == 'listitem':
16509 obj_ = docListItemType.factory(parent_object_=self)
16510 obj_.build(child_, gds_collector_=gds_collector_)
16511 self.listitem.append(obj_)
16512 obj_.original_tagname_ = 'listitem'
16513# end class docVariableListType
16514
16515
16516class docRefTextType(GeneratedsSuper):
16517 __hash__ = GeneratedsSuper.__hash__
16518 subclass = None
16519 superclass = None
16520 def __init__(self, refid=None, kindref=None, external=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
16521 self.gds_collector_ = gds_collector_
16522 self.gds_elementtree_node_ = None
16523 self.original_tagname_ = None
16524 self.parent_object_ = kwargs_.get('parent_object_')
16525 self.ns_prefix_ = None
16526 self.refid = _cast(None, refid)
16527 self.refid_nsprefix_ = None
16528 self.kindref = _cast(None, kindref)
16529 self.kindref_nsprefix_ = None
16530 self.external = _cast(None, external)
16531 self.external_nsprefix_ = None
16532 if ulink is None:
16533 self.ulink = []
16534 else:
16535 self.ulink = ulink
16536 self.ulink_nsprefix_ = None
16537 if bold is None:
16538 self.bold = []
16539 else:
16540 self.bold = bold
16541 self.bold_nsprefix_ = None
16542 if s is None:
16543 self.s = []
16544 else:
16545 self.s = s
16546 self.s_nsprefix_ = None
16547 if strike is None:
16548 self.strike = []
16549 else:
16550 self.strike = strike
16551 self.strike_nsprefix_ = None
16552 if underline is None:
16553 self.underline = []
16554 else:
16555 self.underline = underline
16556 self.underline_nsprefix_ = None
16557 if emphasis is None:
16558 self.emphasis = []
16559 else:
16560 self.emphasis = emphasis
16561 self.emphasis_nsprefix_ = None
16562 if computeroutput is None:
16563 self.computeroutput = []
16564 else:
16565 self.computeroutput = computeroutput
16566 self.computeroutput_nsprefix_ = None
16567 if subscript is None:
16568 self.subscript = []
16569 else:
16570 self.subscript = subscript
16571 self.subscript_nsprefix_ = None
16572 if superscript is None:
16573 self.superscript = []
16574 else:
16575 self.superscript = superscript
16576 self.superscript_nsprefix_ = None
16577 if center is None:
16578 self.center = []
16579 else:
16580 self.center = center
16581 self.center_nsprefix_ = None
16582 if small is None:
16583 self.small = []
16584 else:
16585 self.small = small
16586 self.small_nsprefix_ = None
16587 if cite is None:
16588 self.cite = []
16589 else:
16590 self.cite = cite
16591 self.cite_nsprefix_ = None
16592 if del_ is None:
16593 self.del_ = []
16594 else:
16595 self.del_ = del_
16596 self.del__nsprefix_ = None
16597 if ins is None:
16598 self.ins = []
16599 else:
16600 self.ins = ins
16601 self.ins_nsprefix_ = None
16602 if htmlonly is None:
16603 self.htmlonly = []
16604 else:
16605 self.htmlonly = htmlonly
16606 self.htmlonly_nsprefix_ = None
16607 if manonly is None:
16608 self.manonly = []
16609 else:
16610 self.manonly = manonly
16611 self.manonly_nsprefix_ = None
16612 if xmlonly is None:
16613 self.xmlonly = []
16614 else:
16615 self.xmlonly = xmlonly
16616 self.xmlonly_nsprefix_ = None
16617 if rtfonly is None:
16618 self.rtfonly = []
16619 else:
16620 self.rtfonly = rtfonly
16621 self.rtfonly_nsprefix_ = None
16622 if latexonly is None:
16623 self.latexonly = []
16624 else:
16625 self.latexonly = latexonly
16626 self.latexonly_nsprefix_ = None
16627 if docbookonly is None:
16628 self.docbookonly = []
16629 else:
16630 self.docbookonly = docbookonly
16631 self.docbookonly_nsprefix_ = None
16632 if image is None:
16633 self.image = []
16634 else:
16635 self.image = image
16636 self.image_nsprefix_ = None
16637 if dot is None:
16638 self.dot = []
16639 else:
16640 self.dot = dot
16641 self.dot_nsprefix_ = None
16642 if msc is None:
16643 self.msc = []
16644 else:
16645 self.msc = msc
16646 self.msc_nsprefix_ = None
16647 if plantuml is None:
16648 self.plantuml = []
16649 else:
16650 self.plantuml = plantuml
16651 self.plantuml_nsprefix_ = None
16652 if anchor is None:
16653 self.anchor = []
16654 else:
16655 self.anchor = anchor
16656 self.anchor_nsprefix_ = None
16657 if formula is None:
16658 self.formula = []
16659 else:
16660 self.formula = formula
16661 self.formula_nsprefix_ = None
16662 if ref is None:
16663 self.ref = []
16664 else:
16665 self.ref = ref
16666 self.ref_nsprefix_ = None
16667 if emoji is None:
16668 self.emoji = []
16669 else:
16670 self.emoji = emoji
16671 self.emoji_nsprefix_ = None
16672 if linebreak is None:
16673 self.linebreak = []
16674 else:
16675 self.linebreak = linebreak
16676 self.linebreak_nsprefix_ = None
16677 self.valueOf_ = valueOf_
16678 if mixedclass_ is None:
16679 self.mixedclass_ = MixedContainer
16680 else:
16681 self.mixedclass_ = mixedclass_
16682 if content_ is None:
16683 self.content_ = []
16684 else:
16685 self.content_ = content_
16686 self.valueOf_ = valueOf_
16687 def factory(*args_, **kwargs_):
16688 if CurrentSubclassModule_ is not None:
16689 subclass = getSubclassFromModule_(
16690 CurrentSubclassModule_, docRefTextType)
16691 if subclass is not None:
16692 return subclass(*args_, **kwargs_)
16693 if docRefTextType.subclass:
16694 return docRefTextType.subclass(*args_, **kwargs_)
16695 else:
16696 return docRefTextType(*args_, **kwargs_)
16697 factory = staticmethod(factory)
16699 return self.ns_prefix_
16700 def set_ns_prefix_(self, ns_prefix):
16701 self.ns_prefix_ = ns_prefix
16702 def get_ulink(self):
16703 return self.ulink
16704 def set_ulink(self, ulink):
16705 self.ulink = ulink
16706 def add_ulink(self, value):
16707 self.ulink.append(value)
16708 def insert_ulink_at(self, index, value):
16709 self.ulink.insert(index, value)
16710 def replace_ulink_at(self, index, value):
16711 self.ulink[index] = value
16712 def get_bold(self):
16713 return self.bold
16714 def set_bold(self, bold):
16715 self.bold = bold
16716 def add_bold(self, value):
16717 self.bold.append(value)
16718 def insert_bold_at(self, index, value):
16719 self.bold.insert(index, value)
16720 def replace_bold_at(self, index, value):
16721 self.bold[index] = value
16722 def get_s(self):
16723 return self.s
16724 def set_s(self, s):
16725 self.s = s
16726 def add_s(self, value):
16727 self.s.append(value)
16728 def insert_s_at(self, index, value):
16729 self.s.insert(index, value)
16730 def replace_s_at(self, index, value):
16731 self.s[index] = value
16732 def get_strike(self):
16733 return self.strike
16734 def set_strike(self, strike):
16735 self.strike = strike
16736 def add_strike(self, value):
16737 self.strike.append(value)
16738 def insert_strike_at(self, index, value):
16739 self.strike.insert(index, value)
16740 def replace_strike_at(self, index, value):
16741 self.strike[index] = value
16742 def get_underline(self):
16743 return self.underline
16744 def set_underline(self, underline):
16745 self.underline = underline
16746 def add_underline(self, value):
16747 self.underline.append(value)
16748 def insert_underline_at(self, index, value):
16749 self.underline.insert(index, value)
16750 def replace_underline_at(self, index, value):
16751 self.underline[index] = value
16752 def get_emphasis(self):
16753 return self.emphasis
16754 def set_emphasis(self, emphasis):
16755 self.emphasis = emphasis
16756 def add_emphasis(self, value):
16757 self.emphasis.append(value)
16758 def insert_emphasis_at(self, index, value):
16759 self.emphasis.insert(index, value)
16760 def replace_emphasis_at(self, index, value):
16761 self.emphasis[index] = value
16763 return self.computeroutput
16764 def set_computeroutput(self, computeroutput):
16765 self.computeroutput = computeroutput
16766 def add_computeroutput(self, value):
16767 self.computeroutput.append(value)
16768 def insert_computeroutput_at(self, index, value):
16769 self.computeroutput.insert(index, value)
16770 def replace_computeroutput_at(self, index, value):
16771 self.computeroutput[index] = value
16772 def get_subscript(self):
16773 return self.subscript
16774 def set_subscript(self, subscript):
16775 self.subscript = subscript
16776 def add_subscript(self, value):
16777 self.subscript.append(value)
16778 def insert_subscript_at(self, index, value):
16779 self.subscript.insert(index, value)
16780 def replace_subscript_at(self, index, value):
16781 self.subscript[index] = value
16783 return self.superscript
16784 def set_superscript(self, superscript):
16785 self.superscript = superscript
16786 def add_superscript(self, value):
16787 self.superscript.append(value)
16788 def insert_superscript_at(self, index, value):
16789 self.superscript.insert(index, value)
16790 def replace_superscript_at(self, index, value):
16791 self.superscript[index] = value
16792 def get_center(self):
16793 return self.center
16794 def set_center(self, center):
16795 self.center = center
16796 def add_center(self, value):
16797 self.center.append(value)
16798 def insert_center_at(self, index, value):
16799 self.center.insert(index, value)
16800 def replace_center_at(self, index, value):
16801 self.center[index] = value
16802 def get_small(self):
16803 return self.small
16804 def set_small(self, small):
16805 self.small = small
16806 def add_small(self, value):
16807 self.small.append(value)
16808 def insert_small_at(self, index, value):
16809 self.small.insert(index, value)
16810 def replace_small_at(self, index, value):
16811 self.small[index] = value
16812 def get_cite(self):
16813 return self.cite
16814 def set_cite(self, cite):
16815 self.cite = cite
16816 def add_cite(self, value):
16817 self.cite.append(value)
16818 def insert_cite_at(self, index, value):
16819 self.cite.insert(index, value)
16820 def replace_cite_at(self, index, value):
16821 self.cite[index] = value
16822 def get_del(self):
16823 return self.del_
16824 def set_del(self, del_):
16825 self.del_ = del_
16826 def add_del(self, value):
16827 self.del_.append(value)
16828 def insert_del_at(self, index, value):
16829 self.del_.insert(index, value)
16830 def replace_del_at(self, index, value):
16831 self.del_[index] = value
16832 def get_ins(self):
16833 return self.ins
16834 def set_ins(self, ins):
16835 self.ins = ins
16836 def add_ins(self, value):
16837 self.ins.append(value)
16838 def insert_ins_at(self, index, value):
16839 self.ins.insert(index, value)
16840 def replace_ins_at(self, index, value):
16841 self.ins[index] = value
16842 def get_htmlonly(self):
16843 return self.htmlonly
16844 def set_htmlonly(self, htmlonly):
16845 self.htmlonly = htmlonly
16846 def add_htmlonly(self, value):
16847 self.htmlonly.append(value)
16848 def insert_htmlonly_at(self, index, value):
16849 self.htmlonly.insert(index, value)
16850 def replace_htmlonly_at(self, index, value):
16851 self.htmlonly[index] = value
16852 def get_manonly(self):
16853 return self.manonly
16854 def set_manonly(self, manonly):
16855 self.manonly = manonly
16856 def add_manonly(self, value):
16857 self.manonly.append(value)
16858 def insert_manonly_at(self, index, value):
16859 self.manonly.insert(index, value)
16860 def replace_manonly_at(self, index, value):
16861 self.manonly[index] = value
16862 def get_xmlonly(self):
16863 return self.xmlonly
16864 def set_xmlonly(self, xmlonly):
16865 self.xmlonly = xmlonly
16866 def add_xmlonly(self, value):
16867 self.xmlonly.append(value)
16868 def insert_xmlonly_at(self, index, value):
16869 self.xmlonly.insert(index, value)
16870 def replace_xmlonly_at(self, index, value):
16871 self.xmlonly[index] = value
16872 def get_rtfonly(self):
16873 return self.rtfonly
16874 def set_rtfonly(self, rtfonly):
16875 self.rtfonly = rtfonly
16876 def add_rtfonly(self, value):
16877 self.rtfonly.append(value)
16878 def insert_rtfonly_at(self, index, value):
16879 self.rtfonly.insert(index, value)
16880 def replace_rtfonly_at(self, index, value):
16881 self.rtfonly[index] = value
16882 def get_latexonly(self):
16883 return self.latexonly
16884 def set_latexonly(self, latexonly):
16885 self.latexonly = latexonly
16886 def add_latexonly(self, value):
16887 self.latexonly.append(value)
16888 def insert_latexonly_at(self, index, value):
16889 self.latexonly.insert(index, value)
16890 def replace_latexonly_at(self, index, value):
16891 self.latexonly[index] = value
16893 return self.docbookonly
16894 def set_docbookonly(self, docbookonly):
16895 self.docbookonly = docbookonly
16896 def add_docbookonly(self, value):
16897 self.docbookonly.append(value)
16898 def insert_docbookonly_at(self, index, value):
16899 self.docbookonly.insert(index, value)
16900 def replace_docbookonly_at(self, index, value):
16901 self.docbookonly[index] = value
16902 def get_image(self):
16903 return self.image
16904 def set_image(self, image):
16905 self.image = image
16906 def add_image(self, value):
16907 self.image.append(value)
16908 def insert_image_at(self, index, value):
16909 self.image.insert(index, value)
16910 def replace_image_at(self, index, value):
16911 self.image[index] = value
16912 def get_dot(self):
16913 return self.dot
16914 def set_dot(self, dot):
16915 self.dot = dot
16916 def add_dot(self, value):
16917 self.dot.append(value)
16918 def insert_dot_at(self, index, value):
16919 self.dot.insert(index, value)
16920 def replace_dot_at(self, index, value):
16921 self.dot[index] = value
16922 def get_msc(self):
16923 return self.msc
16924 def set_msc(self, msc):
16925 self.msc = msc
16926 def add_msc(self, value):
16927 self.msc.append(value)
16928 def insert_msc_at(self, index, value):
16929 self.msc.insert(index, value)
16930 def replace_msc_at(self, index, value):
16931 self.msc[index] = value
16932 def get_plantuml(self):
16933 return self.plantuml
16934 def set_plantuml(self, plantuml):
16935 self.plantuml = plantuml
16936 def add_plantuml(self, value):
16937 self.plantuml.append(value)
16938 def insert_plantuml_at(self, index, value):
16939 self.plantuml.insert(index, value)
16940 def replace_plantuml_at(self, index, value):
16941 self.plantuml[index] = value
16942 def get_anchor(self):
16943 return self.anchor
16944 def set_anchor(self, anchor):
16945 self.anchor = anchor
16946 def add_anchor(self, value):
16947 self.anchor.append(value)
16948 def insert_anchor_at(self, index, value):
16949 self.anchor.insert(index, value)
16950 def replace_anchor_at(self, index, value):
16951 self.anchor[index] = value
16952 def get_formula(self):
16953 return self.formula
16954 def set_formula(self, formula):
16955 self.formula = formula
16956 def add_formula(self, value):
16957 self.formula.append(value)
16958 def insert_formula_at(self, index, value):
16959 self.formula.insert(index, value)
16960 def replace_formula_at(self, index, value):
16961 self.formula[index] = value
16962 def get_ref(self):
16963 return self.ref
16964 def set_ref(self, ref):
16965 self.ref = ref
16966 def add_ref(self, value):
16967 self.ref.append(value)
16968 def insert_ref_at(self, index, value):
16969 self.ref.insert(index, value)
16970 def replace_ref_at(self, index, value):
16971 self.ref[index] = value
16972 def get_emoji(self):
16973 return self.emoji
16974 def set_emoji(self, emoji):
16975 self.emoji = emoji
16976 def add_emoji(self, value):
16977 self.emoji.append(value)
16978 def insert_emoji_at(self, index, value):
16979 self.emoji.insert(index, value)
16980 def replace_emoji_at(self, index, value):
16981 self.emoji[index] = value
16982 def get_linebreak(self):
16983 return self.linebreak
16984 def set_linebreak(self, linebreak):
16985 self.linebreak = linebreak
16986 def add_linebreak(self, value):
16987 self.linebreak.append(value)
16988 def insert_linebreak_at(self, index, value):
16989 self.linebreak.insert(index, value)
16990 def replace_linebreak_at(self, index, value):
16991 self.linebreak[index] = value
16992 def get_refid(self):
16993 return self.refid
16994 def set_refid(self, refid):
16995 self.refid = refid
16996 def get_kindref(self):
16997 return self.kindref
16998 def set_kindref(self, kindref):
16999 self.kindref = kindref
17000 def get_external(self):
17001 return self.external
17002 def set_external(self, external):
17003 self.external = external
17004 def get_valueOf_(self): return self.valueOf_
17005 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
17006 def validate_DoxRefKind(self, value):
17007 # Validate type DoxRefKind, a restriction on xsd:string.
17008 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
17009 if not isinstance(value, str):
17011 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
17012 return False
17013 value = value
17014 enumerations = ['compound', 'member']
17015 if value not in enumerations:
17017 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxRefKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
17018 result = False
17019 def hasContent_(self):
17020 if (
17021 self.ulink or
17022 self.bold or
17023 self.s or
17024 self.strike or
17025 self.underline or
17026 self.emphasis or
17027 self.computeroutput or
17028 self.subscript or
17029 self.superscript or
17030 self.center or
17031 self.small or
17032 self.cite or
17033 self.del_ or
17034 self.ins or
17035 self.htmlonly or
17036 self.manonly or
17037 self.xmlonly or
17038 self.rtfonly or
17039 self.latexonly or
17040 self.docbookonly or
17041 self.image or
17042 self.dot or
17043 self.msc or
17044 self.plantuml or
17045 self.anchor or
17046 self.formula or
17047 self.ref or
17048 self.emoji or
17049 self.linebreak or
17050 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
17051 self.content_
17052 ):
17053 return True
17054 else:
17055 return False
17056 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRefTextType', pretty_print=True):
17057 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docRefTextType')
17058 if imported_ns_def_ is not None:
17059 namespacedef_ = imported_ns_def_
17060 if pretty_print:
17061 eol_ = '\n'
17062 else:
17063 eol_ = ''
17064 if self.original_tagname_ is not None and name_ == 'docRefTextType':
17065 name_ = self.original_tagname_
17066 if UseCapturedNS_ and self.ns_prefix_:
17067 namespaceprefix_ = self.ns_prefix_ + ':'
17068 showIndent(outfile, level, pretty_print)
17069 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
17070 already_processed = set()
17071 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docRefTextType')
17072 if self.hasContent_hasContent_():
17073 outfile.write('>%s' % (eol_, ))
17074 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docRefTextType', pretty_print=pretty_print)
17075 showIndent(outfile, level, pretty_print)
17076 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
17077 else:
17078 outfile.write('/>%s' % (eol_, ))
17079 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docRefTextType'):
17080 if self.refid is not None and 'refid' not in already_processed:
17081 already_processed.add('refid')
17082 outfile.write(' refid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.refid), input_name='refid')), ))
17083 if self.kindref is not None and 'kindref' not in already_processed:
17084 already_processed.add('kindref')
17085 outfile.write(' kindref=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kindref), input_name='kindref')), ))
17086 if self.external is not None and 'external' not in already_processed:
17087 already_processed.add('external')
17088 outfile.write(' external=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.external), input_name='external')), ))
17089 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRefTextType', fromsubclass_=False, pretty_print=True):
17090 if not fromsubclass_:
17091 for item_ in self.content_:
17092 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
17093 if pretty_print:
17094 eol_ = '\n'
17095 else:
17096 eol_ = ''
17097 for ulink_ in self.ulink:
17098 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
17099 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
17100 for bold_ in self.bold:
17101 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
17102 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
17103 for s_ in self.s:
17104 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
17105 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
17106 for strike_ in self.strike:
17107 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
17108 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
17109 for underline_ in self.underline:
17110 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
17111 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
17112 for emphasis_ in self.emphasis:
17113 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
17114 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
17115 for computeroutput_ in self.computeroutput:
17116 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
17117 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
17118 for subscript_ in self.subscript:
17119 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
17120 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
17121 for superscript_ in self.superscript:
17122 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
17123 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
17124 for center_ in self.center:
17125 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
17126 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
17127 for small_ in self.small:
17128 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
17129 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
17130 for cite_ in self.cite:
17131 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
17132 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
17133 for del_ in self.del_:
17134 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
17135 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
17136 for ins_ in self.ins:
17137 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
17138 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
17139 for htmlonly_ in self.htmlonly:
17140 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
17141 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
17142 for manonly_ in self.manonly:
17143 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
17144 showIndent(outfile, level, pretty_print)
17145 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
17146 for xmlonly_ in self.xmlonly:
17147 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
17148 showIndent(outfile, level, pretty_print)
17149 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
17150 for rtfonly_ in self.rtfonly:
17151 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
17152 showIndent(outfile, level, pretty_print)
17153 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
17154 for latexonly_ in self.latexonly:
17155 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
17156 showIndent(outfile, level, pretty_print)
17157 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
17158 for docbookonly_ in self.docbookonly:
17159 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
17160 showIndent(outfile, level, pretty_print)
17161 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
17162 for image_ in self.image:
17163 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
17164 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
17165 for dot_ in self.dot:
17166 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
17167 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
17168 for msc_ in self.msc:
17169 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
17170 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
17171 for plantuml_ in self.plantuml:
17172 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
17173 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
17174 for anchor_ in self.anchor:
17175 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
17176 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
17177 for formula_ in self.formula:
17178 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
17179 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
17180 for ref_ in self.ref:
17181 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
17182 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
17183 for emoji_ in self.emoji:
17184 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
17185 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
17186 for linebreak_ in self.linebreak:
17187 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
17188 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
17189 def build(self, node, gds_collector_=None):
17190 self.gds_collector_ = gds_collector_
17191 if SaveElementTreeNode:
17192 self.gds_elementtree_node_ = node
17193 already_processed = set()
17194 self.ns_prefix_ = node.prefix
17195 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
17196 self.valueOf_ = get_all_text_(node)
17197 if node.text is not None:
17198 obj_ = self.mixedclass_(MixedContainer.CategoryText,
17199 MixedContainer.TypeNone, '', node.text)
17200 self.content_.append(obj_)
17201 for child in node:
17202 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
17203 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
17204 return self
17205 def buildAttributes(self, node, attrs, already_processed):
17206 value = find_attr_value_('refid', node)
17207 if value is not None and 'refid' not in already_processed:
17208 already_processed.add('refid')
17209 self.refid = value
17210 value = find_attr_value_('kindref', node)
17211 if value is not None and 'kindref' not in already_processed:
17212 already_processed.add('kindref')
17213 self.kindref = value
17214 self.validate_DoxRefKindvalidate_DoxRefKind(self.kindref) # validate type DoxRefKind
17215 value = find_attr_value_('external', node)
17216 if value is not None and 'external' not in already_processed:
17217 already_processed.add('external')
17218 self.external = value
17219 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
17220 if nodeName_ == 'ulink':
17221 obj_ = docURLLink.factory(parent_object_=self)
17222 obj_.build(child_, gds_collector_=gds_collector_)
17223 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17224 MixedContainer.TypeNone, 'ulink', obj_)
17225 self.content_.append(obj_)
17226 if hasattr(self, 'add_ulink'):
17227 self.add_ulinkadd_ulink(obj_.value)
17228 elif hasattr(self, 'set_ulink'):
17229 self.set_ulinkset_ulink(obj_.value)
17230 elif nodeName_ == 'bold':
17231 obj_ = docMarkupType.factory(parent_object_=self)
17232 obj_.build(child_, gds_collector_=gds_collector_)
17233 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17234 MixedContainer.TypeNone, 'bold', obj_)
17235 self.content_.append(obj_)
17236 if hasattr(self, 'add_bold'):
17237 self.add_boldadd_bold(obj_.value)
17238 elif hasattr(self, 'set_bold'):
17239 self.set_boldset_bold(obj_.value)
17240 elif nodeName_ == 's':
17241 obj_ = docMarkupType.factory(parent_object_=self)
17242 obj_.build(child_, gds_collector_=gds_collector_)
17243 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17244 MixedContainer.TypeNone, 's', obj_)
17245 self.content_.append(obj_)
17246 if hasattr(self, 'add_s'):
17247 self.add_sadd_s(obj_.value)
17248 elif hasattr(self, 'set_s'):
17249 self.set_sset_s(obj_.value)
17250 elif nodeName_ == 'strike':
17251 obj_ = docMarkupType.factory(parent_object_=self)
17252 obj_.build(child_, gds_collector_=gds_collector_)
17253 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17254 MixedContainer.TypeNone, 'strike', obj_)
17255 self.content_.append(obj_)
17256 if hasattr(self, 'add_strike'):
17257 self.add_strikeadd_strike(obj_.value)
17258 elif hasattr(self, 'set_strike'):
17259 self.set_strikeset_strike(obj_.value)
17260 elif nodeName_ == 'underline':
17261 obj_ = docMarkupType.factory(parent_object_=self)
17262 obj_.build(child_, gds_collector_=gds_collector_)
17263 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17264 MixedContainer.TypeNone, 'underline', obj_)
17265 self.content_.append(obj_)
17266 if hasattr(self, 'add_underline'):
17267 self.add_underlineadd_underline(obj_.value)
17268 elif hasattr(self, 'set_underline'):
17269 self.set_underlineset_underline(obj_.value)
17270 elif nodeName_ == 'emphasis':
17271 obj_ = docMarkupType.factory(parent_object_=self)
17272 obj_.build(child_, gds_collector_=gds_collector_)
17273 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17274 MixedContainer.TypeNone, 'emphasis', obj_)
17275 self.content_.append(obj_)
17276 if hasattr(self, 'add_emphasis'):
17277 self.add_emphasisadd_emphasis(obj_.value)
17278 elif hasattr(self, 'set_emphasis'):
17279 self.set_emphasisset_emphasis(obj_.value)
17280 elif nodeName_ == 'computeroutput':
17281 obj_ = docMarkupType.factory(parent_object_=self)
17282 obj_.build(child_, gds_collector_=gds_collector_)
17283 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17284 MixedContainer.TypeNone, 'computeroutput', obj_)
17285 self.content_.append(obj_)
17286 if hasattr(self, 'add_computeroutput'):
17288 elif hasattr(self, 'set_computeroutput'):
17290 elif nodeName_ == 'subscript':
17291 obj_ = docMarkupType.factory(parent_object_=self)
17292 obj_.build(child_, gds_collector_=gds_collector_)
17293 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17294 MixedContainer.TypeNone, 'subscript', obj_)
17295 self.content_.append(obj_)
17296 if hasattr(self, 'add_subscript'):
17297 self.add_subscriptadd_subscript(obj_.value)
17298 elif hasattr(self, 'set_subscript'):
17299 self.set_subscriptset_subscript(obj_.value)
17300 elif nodeName_ == 'superscript':
17301 obj_ = docMarkupType.factory(parent_object_=self)
17302 obj_.build(child_, gds_collector_=gds_collector_)
17303 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17304 MixedContainer.TypeNone, 'superscript', obj_)
17305 self.content_.append(obj_)
17306 if hasattr(self, 'add_superscript'):
17307 self.add_superscriptadd_superscript(obj_.value)
17308 elif hasattr(self, 'set_superscript'):
17309 self.set_superscriptset_superscript(obj_.value)
17310 elif nodeName_ == 'center':
17311 obj_ = docMarkupType.factory(parent_object_=self)
17312 obj_.build(child_, gds_collector_=gds_collector_)
17313 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17314 MixedContainer.TypeNone, 'center', obj_)
17315 self.content_.append(obj_)
17316 if hasattr(self, 'add_center'):
17317 self.add_centeradd_center(obj_.value)
17318 elif hasattr(self, 'set_center'):
17319 self.set_centerset_center(obj_.value)
17320 elif nodeName_ == 'small':
17321 obj_ = docMarkupType.factory(parent_object_=self)
17322 obj_.build(child_, gds_collector_=gds_collector_)
17323 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17324 MixedContainer.TypeNone, 'small', obj_)
17325 self.content_.append(obj_)
17326 if hasattr(self, 'add_small'):
17327 self.add_smalladd_small(obj_.value)
17328 elif hasattr(self, 'set_small'):
17329 self.set_smallset_small(obj_.value)
17330 elif nodeName_ == 'cite':
17331 obj_ = docMarkupType.factory(parent_object_=self)
17332 obj_.build(child_, gds_collector_=gds_collector_)
17333 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17334 MixedContainer.TypeNone, 'cite', obj_)
17335 self.content_.append(obj_)
17336 if hasattr(self, 'add_cite'):
17337 self.add_citeadd_cite(obj_.value)
17338 elif hasattr(self, 'set_cite'):
17339 self.set_citeset_cite(obj_.value)
17340 elif nodeName_ == 'del':
17341 obj_ = docMarkupType.factory(parent_object_=self)
17342 obj_.build(child_, gds_collector_=gds_collector_)
17343 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17344 MixedContainer.TypeNone, 'del', obj_)
17345 self.content_.append(obj_)
17346 if hasattr(self, 'add_del'):
17347 self.add_deladd_del(obj_.value)
17348 elif hasattr(self, 'set_del'):
17349 self.set_delset_del(obj_.value)
17350 elif nodeName_ == 'ins':
17351 obj_ = docMarkupType.factory(parent_object_=self)
17352 obj_.build(child_, gds_collector_=gds_collector_)
17353 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17354 MixedContainer.TypeNone, 'ins', obj_)
17355 self.content_.append(obj_)
17356 if hasattr(self, 'add_ins'):
17357 self.add_insadd_ins(obj_.value)
17358 elif hasattr(self, 'set_ins'):
17359 self.set_insset_ins(obj_.value)
17360 elif nodeName_ == 'htmlonly':
17361 obj_ = docHtmlOnlyType.factory(parent_object_=self)
17362 obj_.build(child_, gds_collector_=gds_collector_)
17363 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17364 MixedContainer.TypeNone, 'htmlonly', obj_)
17365 self.content_.append(obj_)
17366 if hasattr(self, 'add_htmlonly'):
17367 self.add_htmlonlyadd_htmlonly(obj_.value)
17368 elif hasattr(self, 'set_htmlonly'):
17369 self.set_htmlonlyset_htmlonly(obj_.value)
17370 elif nodeName_ == 'manonly' and child_.text is not None:
17371 valuestr_ = child_.text
17372 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
17373 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
17374 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
17375 MixedContainer.TypeString, 'manonly', valuestr_)
17376 self.content_.append(obj_)
17377 self.manonly_nsprefix_ = child_.prefix
17378 elif nodeName_ == 'xmlonly' and child_.text is not None:
17379 valuestr_ = child_.text
17380 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
17381 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
17382 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
17383 MixedContainer.TypeString, 'xmlonly', valuestr_)
17384 self.content_.append(obj_)
17385 self.xmlonly_nsprefix_ = child_.prefix
17386 elif nodeName_ == 'rtfonly' and child_.text is not None:
17387 valuestr_ = child_.text
17388 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
17389 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
17390 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
17391 MixedContainer.TypeString, 'rtfonly', valuestr_)
17392 self.content_.append(obj_)
17393 self.rtfonly_nsprefix_ = child_.prefix
17394 elif nodeName_ == 'latexonly' and child_.text is not None:
17395 valuestr_ = child_.text
17396 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
17397 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
17398 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
17399 MixedContainer.TypeString, 'latexonly', valuestr_)
17400 self.content_.append(obj_)
17401 self.latexonly_nsprefix_ = child_.prefix
17402 elif nodeName_ == 'docbookonly' and child_.text is not None:
17403 valuestr_ = child_.text
17404 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
17405 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
17406 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
17407 MixedContainer.TypeString, 'docbookonly', valuestr_)
17408 self.content_.append(obj_)
17409 self.docbookonly_nsprefix_ = child_.prefix
17410 elif nodeName_ == 'image':
17411 obj_ = docImageType.factory(parent_object_=self)
17412 obj_.build(child_, gds_collector_=gds_collector_)
17413 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17414 MixedContainer.TypeNone, 'image', obj_)
17415 self.content_.append(obj_)
17416 if hasattr(self, 'add_image'):
17417 self.add_imageadd_image(obj_.value)
17418 elif hasattr(self, 'set_image'):
17419 self.set_imageset_image(obj_.value)
17420 elif nodeName_ == 'dot':
17421 obj_ = docDotMscType.factory(parent_object_=self)
17422 obj_.build(child_, gds_collector_=gds_collector_)
17423 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17424 MixedContainer.TypeNone, 'dot', obj_)
17425 self.content_.append(obj_)
17426 if hasattr(self, 'add_dot'):
17427 self.add_dotadd_dot(obj_.value)
17428 elif hasattr(self, 'set_dot'):
17429 self.set_dotset_dot(obj_.value)
17430 elif nodeName_ == 'msc':
17431 obj_ = docDotMscType.factory(parent_object_=self)
17432 obj_.build(child_, gds_collector_=gds_collector_)
17433 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17434 MixedContainer.TypeNone, 'msc', obj_)
17435 self.content_.append(obj_)
17436 if hasattr(self, 'add_msc'):
17437 self.add_mscadd_msc(obj_.value)
17438 elif hasattr(self, 'set_msc'):
17439 self.set_mscset_msc(obj_.value)
17440 elif nodeName_ == 'plantuml':
17441 obj_ = docPlantumlType.factory(parent_object_=self)
17442 obj_.build(child_, gds_collector_=gds_collector_)
17443 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17444 MixedContainer.TypeNone, 'plantuml', obj_)
17445 self.content_.append(obj_)
17446 if hasattr(self, 'add_plantuml'):
17447 self.add_plantumladd_plantuml(obj_.value)
17448 elif hasattr(self, 'set_plantuml'):
17449 self.set_plantumlset_plantuml(obj_.value)
17450 elif nodeName_ == 'anchor':
17451 obj_ = docAnchorType.factory(parent_object_=self)
17452 obj_.build(child_, gds_collector_=gds_collector_)
17453 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17454 MixedContainer.TypeNone, 'anchor', obj_)
17455 self.content_.append(obj_)
17456 if hasattr(self, 'add_anchor'):
17457 self.add_anchoradd_anchor(obj_.value)
17458 elif hasattr(self, 'set_anchor'):
17459 self.set_anchorset_anchor(obj_.value)
17460 elif nodeName_ == 'formula':
17461 obj_ = docFormulaType.factory(parent_object_=self)
17462 obj_.build(child_, gds_collector_=gds_collector_)
17463 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17464 MixedContainer.TypeNone, 'formula', obj_)
17465 self.content_.append(obj_)
17466 if hasattr(self, 'add_formula'):
17467 self.add_formulaadd_formula(obj_.value)
17468 elif hasattr(self, 'set_formula'):
17469 self.set_formulaset_formula(obj_.value)
17470 elif nodeName_ == 'ref':
17471 obj_ = docRefTextType.factory(parent_object_=self)
17472 obj_.build(child_, gds_collector_=gds_collector_)
17473 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17474 MixedContainer.TypeNone, 'ref', obj_)
17475 self.content_.append(obj_)
17476 if hasattr(self, 'add_ref'):
17477 self.add_refadd_ref(obj_.value)
17478 elif hasattr(self, 'set_ref'):
17479 self.set_refset_ref(obj_.value)
17480 elif nodeName_ == 'emoji':
17481 obj_ = docEmojiType.factory(parent_object_=self)
17482 obj_.build(child_, gds_collector_=gds_collector_)
17483 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17484 MixedContainer.TypeNone, 'emoji', obj_)
17485 self.content_.append(obj_)
17486 if hasattr(self, 'add_emoji'):
17487 self.add_emojiadd_emoji(obj_.value)
17488 elif hasattr(self, 'set_emoji'):
17489 self.set_emojiset_emoji(obj_.value)
17490 elif nodeName_ == 'linebreak':
17491 obj_ = docEmptyType.factory(parent_object_=self)
17492 obj_.build(child_, gds_collector_=gds_collector_)
17493 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
17494 MixedContainer.TypeNone, 'linebreak', obj_)
17495 self.content_.append(obj_)
17496 if hasattr(self, 'add_linebreak'):
17497 self.add_linebreakadd_linebreak(obj_.value)
17498 elif hasattr(self, 'set_linebreak'):
17499 self.set_linebreakset_linebreak(obj_.value)
17500 if not fromsubclass_ and child_.tail is not None:
17501 obj_ = self.mixedclass_(MixedContainer.CategoryText,
17502 MixedContainer.TypeNone, '', child_.tail)
17503 self.content_.append(obj_)
17504# end class docRefTextType
17505
17506
17508 __hash__ = GeneratedsSuper.__hash__
17509 subclass = None
17510 superclass = None
17511 def __init__(self, rows=None, cols=None, width=None, caption=None, row=None, gds_collector_=None, **kwargs_):
17512 self.gds_collector_ = gds_collector_
17513 self.gds_elementtree_node_ = None
17514 self.original_tagname_ = None
17515 self.parent_object_ = kwargs_.get('parent_object_')
17516 self.ns_prefix_ = None
17517 self.rows = _cast(int, rows)
17518 self.rows_nsprefix_ = None
17519 self.cols = _cast(int, cols)
17520 self.cols_nsprefix_ = None
17521 self.width = _cast(None, width)
17522 self.width_nsprefix_ = None
17523 self.caption = caption
17524 self.caption_nsprefix_ = None
17525 if row is None:
17526 self.row = []
17527 else:
17528 self.row = row
17529 self.row_nsprefix_ = None
17530 def factory(*args_, **kwargs_):
17531 if CurrentSubclassModule_ is not None:
17532 subclass = getSubclassFromModule_(
17533 CurrentSubclassModule_, docTableType)
17534 if subclass is not None:
17535 return subclass(*args_, **kwargs_)
17536 if docTableType.subclass:
17537 return docTableType.subclass(*args_, **kwargs_)
17538 else:
17539 return docTableType(*args_, **kwargs_)
17540 factory = staticmethod(factory)
17542 return self.ns_prefix_
17543 def set_ns_prefix_(self, ns_prefix):
17544 self.ns_prefix_ = ns_prefix
17545 def get_caption(self):
17546 return self.caption
17547 def set_caption(self, caption):
17548 self.caption = caption
17549 def get_row(self):
17550 return self.row
17551 def set_row(self, row):
17552 self.row = row
17553 def add_row(self, value):
17554 self.row.append(value)
17555 def insert_row_at(self, index, value):
17556 self.row.insert(index, value)
17557 def replace_row_at(self, index, value):
17558 self.row[index] = value
17559 def get_rows(self):
17560 return self.rows
17561 def set_rows(self, rows):
17562 self.rows = rows
17563 def get_cols(self):
17564 return self.cols
17565 def set_cols(self, cols):
17566 self.cols = cols
17567 def get_width(self):
17568 return self.width
17569 def set_width(self, width):
17570 self.width = width
17571 def hasContent_(self):
17572 if (
17573 self.caption is not None or
17574 self.row
17575 ):
17576 return True
17577 else:
17578 return False
17579 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTableType', pretty_print=True):
17580 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docTableType')
17581 if imported_ns_def_ is not None:
17582 namespacedef_ = imported_ns_def_
17583 if pretty_print:
17584 eol_ = '\n'
17585 else:
17586 eol_ = ''
17587 if self.original_tagname_ is not None and name_ == 'docTableType':
17588 name_ = self.original_tagname_
17589 if UseCapturedNS_ and self.ns_prefix_:
17590 namespaceprefix_ = self.ns_prefix_ + ':'
17591 showIndent(outfile, level, pretty_print)
17592 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
17593 already_processed = set()
17594 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docTableType')
17595 if self.hasContent_hasContent_():
17596 outfile.write('>%s' % (eol_, ))
17597 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docTableType', pretty_print=pretty_print)
17598 showIndent(outfile, level, pretty_print)
17599 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
17600 else:
17601 outfile.write('/>%s' % (eol_, ))
17602 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTableType'):
17603 if self.rows is not None and 'rows' not in already_processed:
17604 already_processed.add('rows')
17605 outfile.write(' rows="%s"' % self.gds_format_integergds_format_integer(self.rows, input_name='rows'))
17606 if self.cols is not None and 'cols' not in already_processed:
17607 already_processed.add('cols')
17608 outfile.write(' cols="%s"' % self.gds_format_integergds_format_integer(self.cols, input_name='cols'))
17609 if self.width is not None and 'width' not in already_processed:
17610 already_processed.add('width')
17611 outfile.write(' width=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.width), input_name='width')), ))
17612 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTableType', fromsubclass_=False, pretty_print=True):
17613 if pretty_print:
17614 eol_ = '\n'
17615 else:
17616 eol_ = ''
17617 if self.caption is not None:
17618 namespaceprefix_ = self.caption_nsprefix_ + ':' if (UseCapturedNS_ and self.caption_nsprefix_) else ''
17619 self.caption.export(outfile, level, namespaceprefix_, namespacedef_='', name_='caption', pretty_print=pretty_print)
17620 for row_ in self.row:
17621 namespaceprefix_ = self.row_nsprefix_ + ':' if (UseCapturedNS_ and self.row_nsprefix_) else ''
17622 row_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='row', pretty_print=pretty_print)
17623 def build(self, node, gds_collector_=None):
17624 self.gds_collector_ = gds_collector_
17625 if SaveElementTreeNode:
17626 self.gds_elementtree_node_ = node
17627 already_processed = set()
17628 self.ns_prefix_ = node.prefix
17629 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
17630 for child in node:
17631 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
17632 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
17633 return self
17634 def buildAttributes(self, node, attrs, already_processed):
17635 value = find_attr_value_('rows', node)
17636 if value is not None and 'rows' not in already_processed:
17637 already_processed.add('rows')
17638 self.rows = self.gds_parse_integergds_parse_integer(value, node, 'rows')
17639 value = find_attr_value_('cols', node)
17640 if value is not None and 'cols' not in already_processed:
17641 already_processed.add('cols')
17642 self.cols = self.gds_parse_integergds_parse_integer(value, node, 'cols')
17643 value = find_attr_value_('width', node)
17644 if value is not None and 'width' not in already_processed:
17645 already_processed.add('width')
17646 self.width = value
17647 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
17648 if nodeName_ == 'caption':
17649 obj_ = docCaptionType.factory(parent_object_=self)
17650 obj_.build(child_, gds_collector_=gds_collector_)
17651 self.caption = obj_
17652 obj_.original_tagname_ = 'caption'
17653 elif nodeName_ == 'row':
17654 obj_ = docRowType.factory(parent_object_=self)
17655 obj_.build(child_, gds_collector_=gds_collector_)
17656 self.row.append(obj_)
17657 obj_.original_tagname_ = 'row'
17658# end class docTableType
17659
17660
17662 __hash__ = GeneratedsSuper.__hash__
17663 subclass = None
17664 superclass = None
17665 def __init__(self, entry=None, gds_collector_=None, **kwargs_):
17666 self.gds_collector_ = gds_collector_
17667 self.gds_elementtree_node_ = None
17668 self.original_tagname_ = None
17669 self.parent_object_ = kwargs_.get('parent_object_')
17670 self.ns_prefix_ = None
17671 if entry is None:
17672 self.entry = []
17673 else:
17674 self.entry = entry
17675 self.entry_nsprefix_ = None
17676 def factory(*args_, **kwargs_):
17677 if CurrentSubclassModule_ is not None:
17678 subclass = getSubclassFromModule_(
17679 CurrentSubclassModule_, docRowType)
17680 if subclass is not None:
17681 return subclass(*args_, **kwargs_)
17682 if docRowType.subclass:
17683 return docRowType.subclass(*args_, **kwargs_)
17684 else:
17685 return docRowType(*args_, **kwargs_)
17686 factory = staticmethod(factory)
17688 return self.ns_prefix_
17689 def set_ns_prefix_(self, ns_prefix):
17690 self.ns_prefix_ = ns_prefix
17691 def get_entry(self):
17692 return self.entry
17693 def set_entry(self, entry):
17694 self.entry = entry
17695 def add_entry(self, value):
17696 self.entry.append(value)
17697 def insert_entry_at(self, index, value):
17698 self.entry.insert(index, value)
17699 def replace_entry_at(self, index, value):
17700 self.entry[index] = value
17701 def hasContent_(self):
17702 if (
17703 self.entry
17704 ):
17705 return True
17706 else:
17707 return False
17708 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRowType', pretty_print=True):
17709 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docRowType')
17710 if imported_ns_def_ is not None:
17711 namespacedef_ = imported_ns_def_
17712 if pretty_print:
17713 eol_ = '\n'
17714 else:
17715 eol_ = ''
17716 if self.original_tagname_ is not None and name_ == 'docRowType':
17717 name_ = self.original_tagname_
17718 if UseCapturedNS_ and self.ns_prefix_:
17719 namespaceprefix_ = self.ns_prefix_ + ':'
17720 showIndent(outfile, level, pretty_print)
17721 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
17722 already_processed = set()
17723 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docRowType')
17724 if self.hasContent_hasContent_():
17725 outfile.write('>%s' % (eol_, ))
17726 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docRowType', pretty_print=pretty_print)
17727 showIndent(outfile, level, pretty_print)
17728 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
17729 else:
17730 outfile.write('/>%s' % (eol_, ))
17731 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docRowType'):
17732 pass
17733 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRowType', fromsubclass_=False, pretty_print=True):
17734 if pretty_print:
17735 eol_ = '\n'
17736 else:
17737 eol_ = ''
17738 for entry_ in self.entry:
17739 namespaceprefix_ = self.entry_nsprefix_ + ':' if (UseCapturedNS_ and self.entry_nsprefix_) else ''
17740 entry_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='entry', pretty_print=pretty_print)
17741 def build(self, node, gds_collector_=None):
17742 self.gds_collector_ = gds_collector_
17743 if SaveElementTreeNode:
17744 self.gds_elementtree_node_ = node
17745 already_processed = set()
17746 self.ns_prefix_ = node.prefix
17747 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
17748 for child in node:
17749 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
17750 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
17751 return self
17752 def buildAttributes(self, node, attrs, already_processed):
17753 pass
17754 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
17755 if nodeName_ == 'entry':
17756 obj_ = docEntryType.factory(parent_object_=self)
17757 obj_.build(child_, gds_collector_=gds_collector_)
17758 self.entry.append(obj_)
17759 obj_.original_tagname_ = 'entry'
17760# end class docRowType
17761
17762
17763class docEntryType(GeneratedsSuper):
17764 __hash__ = GeneratedsSuper.__hash__
17765 subclass = None
17766 superclass = None
17767 def __init__(self, thead=None, colspan=None, rowspan=None, align=None, valign=None, width=None, class_=None, para=None, gds_collector_=None, **kwargs_):
17768 self.gds_collector_ = gds_collector_
17769 self.gds_elementtree_node_ = None
17770 self.original_tagname_ = None
17771 self.parent_object_ = kwargs_.get('parent_object_')
17772 self.ns_prefix_ = None
17773 self.thead = _cast(None, thead)
17774 self.thead_nsprefix_ = None
17775 self.colspan = _cast(int, colspan)
17776 self.colspan_nsprefix_ = None
17777 self.rowspan = _cast(int, rowspan)
17778 self.rowspan_nsprefix_ = None
17779 self.align = _cast(None, align)
17780 self.align_nsprefix_ = None
17781 self.valign = _cast(None, valign)
17782 self.valign_nsprefix_ = None
17783 self.width = _cast(None, width)
17784 self.width_nsprefix_ = None
17785 self.class_ = _cast(None, class_)
17786 self.class__nsprefix_ = None
17787 if para is None:
17788 self.para = []
17789 else:
17790 self.para = para
17791 self.para_nsprefix_ = None
17792 self.anyAttributes_ = {}
17793 def factory(*args_, **kwargs_):
17794 if CurrentSubclassModule_ is not None:
17795 subclass = getSubclassFromModule_(
17796 CurrentSubclassModule_, docEntryType)
17797 if subclass is not None:
17798 return subclass(*args_, **kwargs_)
17799 if docEntryType.subclass:
17800 return docEntryType.subclass(*args_, **kwargs_)
17801 else:
17802 return docEntryType(*args_, **kwargs_)
17803 factory = staticmethod(factory)
17805 return self.ns_prefix_
17806 def set_ns_prefix_(self, ns_prefix):
17807 self.ns_prefix_ = ns_prefix
17808 def get_para(self):
17809 return self.para
17810 def set_para(self, para):
17811 self.para = para
17812 def add_para(self, value):
17813 self.para.append(value)
17814 def insert_para_at(self, index, value):
17815 self.para.insert(index, value)
17816 def replace_para_at(self, index, value):
17817 self.para[index] = value
17818 def get_thead(self):
17819 return self.thead
17820 def set_thead(self, thead):
17821 self.thead = thead
17822 def get_colspan(self):
17823 return self.colspan
17824 def set_colspan(self, colspan):
17825 self.colspan = colspan
17826 def get_rowspan(self):
17827 return self.rowspan
17828 def set_rowspan(self, rowspan):
17829 self.rowspan = rowspan
17830 def get_align(self):
17831 return self.align
17832 def set_align(self, align):
17833 self.align = align
17834 def get_valign(self):
17835 return self.valign
17836 def set_valign(self, valign):
17837 self.valign = valign
17838 def get_width(self):
17839 return self.width
17840 def set_width(self, width):
17841 self.width = width
17842 def get_class(self):
17843 return self.class_
17844 def set_class(self, class_):
17845 self.class_ = class_
17846 def get_anyAttributes_(self): return self.anyAttributes_
17847 def set_anyAttributes_(self, anyAttributes_): self.anyAttributes_ = anyAttributes_
17848 def validate_DoxBool(self, value):
17849 # Validate type DoxBool, a restriction on xsd:string.
17850 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
17851 if not isinstance(value, str):
17853 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
17854 return False
17855 value = value
17856 enumerations = ['yes', 'no']
17857 if value not in enumerations:
17859 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
17860 result = False
17861 def validate_DoxAlign(self, value):
17862 # Validate type DoxAlign, a restriction on xsd:string.
17863 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
17864 if not isinstance(value, str):
17866 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
17867 return False
17868 value = value
17869 enumerations = ['left', 'right', 'center']
17870 if value not in enumerations:
17872 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxAlign' % {"value" : encode_str_2_3(value), "lineno": lineno} )
17873 result = False
17875 # Validate type DoxVerticalAlign, a restriction on xsd:string.
17876 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
17877 if not isinstance(value, str):
17879 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
17880 return False
17881 value = value
17882 enumerations = ['bottom', 'top', 'middle']
17883 if value not in enumerations:
17885 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxVerticalAlign' % {"value" : encode_str_2_3(value), "lineno": lineno} )
17886 result = False
17887 def hasContent_(self):
17888 if (
17889 self.para
17890 ):
17891 return True
17892 else:
17893 return False
17894 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEntryType', pretty_print=True):
17895 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docEntryType')
17896 if imported_ns_def_ is not None:
17897 namespacedef_ = imported_ns_def_
17898 if pretty_print:
17899 eol_ = '\n'
17900 else:
17901 eol_ = ''
17902 if self.original_tagname_ is not None and name_ == 'docEntryType':
17903 name_ = self.original_tagname_
17904 if UseCapturedNS_ and self.ns_prefix_:
17905 namespaceprefix_ = self.ns_prefix_ + ':'
17906 showIndent(outfile, level, pretty_print)
17907 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
17908 already_processed = set()
17909 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docEntryType')
17910 if self.hasContent_hasContent_():
17911 outfile.write('>%s' % (eol_, ))
17912 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docEntryType', pretty_print=pretty_print)
17913 showIndent(outfile, level, pretty_print)
17914 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
17915 else:
17916 outfile.write('/>%s' % (eol_, ))
17917 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docEntryType'):
17918 unique_counter = 0
17919 for name, value in self.anyAttributes_.items():
17920 xsinamespaceprefix = 'xsi'
17921 xsinamespace1 = 'http://www.w3.org/2001/XMLSchema-instance'
17922 xsinamespace2 = '{%s}' % (xsinamespace1, )
17923 if name.startswith(xsinamespace2):
17924 name1 = name[len(xsinamespace2):]
17925 name2 = '%s:%s' % (xsinamespaceprefix, name1, )
17926 if name2 not in already_processed:
17927 already_processed.add(name2)
17928 outfile.write(' %s=%s' % (name2, quote_attrib(value), ))
17929 else:
17930 mo = re_.match(Namespace_extract_pat_, name)
17931 if mo is not None:
17932 namespace, name = mo.group(1, 2)
17933 if name not in already_processed:
17934 already_processed.add(name)
17935 if namespace == 'http://www.w3.org/XML/1998/namespace':
17936 outfile.write(' %s=%s' % (
17937 name, quote_attrib(value), ))
17938 else:
17939 unique_counter += 1
17940 outfile.write(' xmlns:%d="%s"' % (
17941 unique_counter, namespace, ))
17942 outfile.write(' %d:%s=%s' % (
17943 unique_counter, name, quote_attrib(value), ))
17944 else:
17945 if name not in already_processed:
17946 already_processed.add(name)
17947 outfile.write(' %s=%s' % (
17948 name, quote_attrib(value), ))
17949 if self.thead is not None and 'thead' not in already_processed:
17950 already_processed.add('thead')
17951 outfile.write(' thead=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.thead), input_name='thead')), ))
17952 if self.colspan is not None and 'colspan' not in already_processed:
17953 already_processed.add('colspan')
17954 outfile.write(' colspan="%s"' % self.gds_format_integergds_format_integer(self.colspan, input_name='colspan'))
17955 if self.rowspan is not None and 'rowspan' not in already_processed:
17956 already_processed.add('rowspan')
17957 outfile.write(' rowspan="%s"' % self.gds_format_integergds_format_integer(self.rowspan, input_name='rowspan'))
17958 if self.align is not None and 'align' not in already_processed:
17959 already_processed.add('align')
17960 outfile.write(' align=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.align), input_name='align')), ))
17961 if self.valign is not None and 'valign' not in already_processed:
17962 already_processed.add('valign')
17963 outfile.write(' valign=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.valign), input_name='valign')), ))
17964 if self.width is not None and 'width' not in already_processed:
17965 already_processed.add('width')
17966 outfile.write(' width=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.width), input_name='width')), ))
17967 if self.class_ is not None and 'class_' not in already_processed:
17968 already_processed.add('class_')
17969 outfile.write(' class=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.class_), input_name='class')), ))
17970 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEntryType', fromsubclass_=False, pretty_print=True):
17971 if pretty_print:
17972 eol_ = '\n'
17973 else:
17974 eol_ = ''
17975 for para_ in self.para:
17976 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
17977 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
17978 def build(self, node, gds_collector_=None):
17979 self.gds_collector_ = gds_collector_
17980 if SaveElementTreeNode:
17981 self.gds_elementtree_node_ = node
17982 already_processed = set()
17983 self.ns_prefix_ = node.prefix
17984 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
17985 for child in node:
17986 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
17987 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
17988 return self
17989 def buildAttributes(self, node, attrs, already_processed):
17990 value = find_attr_value_('thead', node)
17991 if value is not None and 'thead' not in already_processed:
17992 already_processed.add('thead')
17993 self.thead = value
17994 self.validate_DoxBoolvalidate_DoxBool(self.thead) # validate type DoxBool
17995 value = find_attr_value_('colspan', node)
17996 if value is not None and 'colspan' not in already_processed:
17997 already_processed.add('colspan')
17998 self.colspan = self.gds_parse_integergds_parse_integer(value, node, 'colspan')
17999 value = find_attr_value_('rowspan', node)
18000 if value is not None and 'rowspan' not in already_processed:
18001 already_processed.add('rowspan')
18002 self.rowspan = self.gds_parse_integergds_parse_integer(value, node, 'rowspan')
18003 value = find_attr_value_('align', node)
18004 if value is not None and 'align' not in already_processed:
18005 already_processed.add('align')
18006 self.align = value
18007 self.validate_DoxAlignvalidate_DoxAlign(self.align) # validate type DoxAlign
18008 value = find_attr_value_('valign', node)
18009 if value is not None and 'valign' not in already_processed:
18010 already_processed.add('valign')
18011 self.valign = value
18012 self.validate_DoxVerticalAlignvalidate_DoxVerticalAlign(self.valign) # validate type DoxVerticalAlign
18013 value = find_attr_value_('width', node)
18014 if value is not None and 'width' not in already_processed:
18015 already_processed.add('width')
18016 self.width = value
18017 value = find_attr_value_('class', node)
18018 if value is not None and 'class' not in already_processed:
18019 already_processed.add('class')
18020 self.class_ = value
18021 self.anyAttributes_ = {}
18022 for name, value in attrs.items():
18023 if name not in already_processed:
18024 self.anyAttributes_[name] = value
18025 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
18026 if nodeName_ == 'para':
18027 obj_ = docParaType.factory(parent_object_=self)
18028 obj_.build(child_, gds_collector_=gds_collector_)
18029 self.para.append(obj_)
18030 obj_.original_tagname_ = 'para'
18031# end class docEntryType
18032
18033
18035 __hash__ = GeneratedsSuper.__hash__
18036 subclass = None
18037 superclass = None
18038 def __init__(self, id=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
18039 self.gds_collector_ = gds_collector_
18040 self.gds_elementtree_node_ = None
18041 self.original_tagname_ = None
18042 self.parent_object_ = kwargs_.get('parent_object_')
18043 self.ns_prefix_ = None
18044 self.id = _cast(None, id)
18045 self.id_nsprefix_ = None
18046 if ulink is None:
18047 self.ulink = []
18048 else:
18049 self.ulink = ulink
18050 self.ulink_nsprefix_ = None
18051 if bold is None:
18052 self.bold = []
18053 else:
18054 self.bold = bold
18055 self.bold_nsprefix_ = None
18056 if s is None:
18057 self.s = []
18058 else:
18059 self.s = s
18060 self.s_nsprefix_ = None
18061 if strike is None:
18062 self.strike = []
18063 else:
18064 self.strike = strike
18065 self.strike_nsprefix_ = None
18066 if underline is None:
18067 self.underline = []
18068 else:
18069 self.underline = underline
18070 self.underline_nsprefix_ = None
18071 if emphasis is None:
18072 self.emphasis = []
18073 else:
18074 self.emphasis = emphasis
18075 self.emphasis_nsprefix_ = None
18076 if computeroutput is None:
18077 self.computeroutput = []
18078 else:
18079 self.computeroutput = computeroutput
18080 self.computeroutput_nsprefix_ = None
18081 if subscript is None:
18082 self.subscript = []
18083 else:
18084 self.subscript = subscript
18085 self.subscript_nsprefix_ = None
18086 if superscript is None:
18087 self.superscript = []
18088 else:
18089 self.superscript = superscript
18090 self.superscript_nsprefix_ = None
18091 if center is None:
18092 self.center = []
18093 else:
18094 self.center = center
18095 self.center_nsprefix_ = None
18096 if small is None:
18097 self.small = []
18098 else:
18099 self.small = small
18100 self.small_nsprefix_ = None
18101 if cite is None:
18102 self.cite = []
18103 else:
18104 self.cite = cite
18105 self.cite_nsprefix_ = None
18106 if del_ is None:
18107 self.del_ = []
18108 else:
18109 self.del_ = del_
18110 self.del__nsprefix_ = None
18111 if ins is None:
18112 self.ins = []
18113 else:
18114 self.ins = ins
18115 self.ins_nsprefix_ = None
18116 if htmlonly is None:
18117 self.htmlonly = []
18118 else:
18119 self.htmlonly = htmlonly
18120 self.htmlonly_nsprefix_ = None
18121 if manonly is None:
18122 self.manonly = []
18123 else:
18124 self.manonly = manonly
18125 self.manonly_nsprefix_ = None
18126 if xmlonly is None:
18127 self.xmlonly = []
18128 else:
18129 self.xmlonly = xmlonly
18130 self.xmlonly_nsprefix_ = None
18131 if rtfonly is None:
18132 self.rtfonly = []
18133 else:
18134 self.rtfonly = rtfonly
18135 self.rtfonly_nsprefix_ = None
18136 if latexonly is None:
18137 self.latexonly = []
18138 else:
18139 self.latexonly = latexonly
18140 self.latexonly_nsprefix_ = None
18141 if docbookonly is None:
18142 self.docbookonly = []
18143 else:
18144 self.docbookonly = docbookonly
18145 self.docbookonly_nsprefix_ = None
18146 if image is None:
18147 self.image = []
18148 else:
18149 self.image = image
18150 self.image_nsprefix_ = None
18151 if dot is None:
18152 self.dot = []
18153 else:
18154 self.dot = dot
18155 self.dot_nsprefix_ = None
18156 if msc is None:
18157 self.msc = []
18158 else:
18159 self.msc = msc
18160 self.msc_nsprefix_ = None
18161 if plantuml is None:
18162 self.plantuml = []
18163 else:
18164 self.plantuml = plantuml
18165 self.plantuml_nsprefix_ = None
18166 if anchor is None:
18167 self.anchor = []
18168 else:
18169 self.anchor = anchor
18170 self.anchor_nsprefix_ = None
18171 if formula is None:
18172 self.formula = []
18173 else:
18174 self.formula = formula
18175 self.formula_nsprefix_ = None
18176 if ref is None:
18177 self.ref = []
18178 else:
18179 self.ref = ref
18180 self.ref_nsprefix_ = None
18181 if emoji is None:
18182 self.emoji = []
18183 else:
18184 self.emoji = emoji
18185 self.emoji_nsprefix_ = None
18186 if linebreak is None:
18187 self.linebreak = []
18188 else:
18189 self.linebreak = linebreak
18190 self.linebreak_nsprefix_ = None
18191 self.valueOf_ = valueOf_
18192 if mixedclass_ is None:
18193 self.mixedclass_ = MixedContainer
18194 else:
18195 self.mixedclass_ = mixedclass_
18196 if content_ is None:
18197 self.content_ = []
18198 else:
18199 self.content_ = content_
18200 self.valueOf_ = valueOf_
18201 def factory(*args_, **kwargs_):
18202 if CurrentSubclassModule_ is not None:
18203 subclass = getSubclassFromModule_(
18204 CurrentSubclassModule_, docCaptionType)
18205 if subclass is not None:
18206 return subclass(*args_, **kwargs_)
18207 if docCaptionType.subclass:
18208 return docCaptionType.subclass(*args_, **kwargs_)
18209 else:
18210 return docCaptionType(*args_, **kwargs_)
18211 factory = staticmethod(factory)
18213 return self.ns_prefix_
18214 def set_ns_prefix_(self, ns_prefix):
18215 self.ns_prefix_ = ns_prefix
18216 def get_ulink(self):
18217 return self.ulink
18218 def set_ulink(self, ulink):
18219 self.ulink = ulink
18220 def add_ulink(self, value):
18221 self.ulink.append(value)
18222 def insert_ulink_at(self, index, value):
18223 self.ulink.insert(index, value)
18224 def replace_ulink_at(self, index, value):
18225 self.ulink[index] = value
18226 def get_bold(self):
18227 return self.bold
18228 def set_bold(self, bold):
18229 self.bold = bold
18230 def add_bold(self, value):
18231 self.bold.append(value)
18232 def insert_bold_at(self, index, value):
18233 self.bold.insert(index, value)
18234 def replace_bold_at(self, index, value):
18235 self.bold[index] = value
18236 def get_s(self):
18237 return self.s
18238 def set_s(self, s):
18239 self.s = s
18240 def add_s(self, value):
18241 self.s.append(value)
18242 def insert_s_at(self, index, value):
18243 self.s.insert(index, value)
18244 def replace_s_at(self, index, value):
18245 self.s[index] = value
18246 def get_strike(self):
18247 return self.strike
18248 def set_strike(self, strike):
18249 self.strike = strike
18250 def add_strike(self, value):
18251 self.strike.append(value)
18252 def insert_strike_at(self, index, value):
18253 self.strike.insert(index, value)
18254 def replace_strike_at(self, index, value):
18255 self.strike[index] = value
18256 def get_underline(self):
18257 return self.underline
18258 def set_underline(self, underline):
18259 self.underline = underline
18260 def add_underline(self, value):
18261 self.underline.append(value)
18262 def insert_underline_at(self, index, value):
18263 self.underline.insert(index, value)
18264 def replace_underline_at(self, index, value):
18265 self.underline[index] = value
18266 def get_emphasis(self):
18267 return self.emphasis
18268 def set_emphasis(self, emphasis):
18269 self.emphasis = emphasis
18270 def add_emphasis(self, value):
18271 self.emphasis.append(value)
18272 def insert_emphasis_at(self, index, value):
18273 self.emphasis.insert(index, value)
18274 def replace_emphasis_at(self, index, value):
18275 self.emphasis[index] = value
18277 return self.computeroutput
18278 def set_computeroutput(self, computeroutput):
18279 self.computeroutput = computeroutput
18280 def add_computeroutput(self, value):
18281 self.computeroutput.append(value)
18282 def insert_computeroutput_at(self, index, value):
18283 self.computeroutput.insert(index, value)
18284 def replace_computeroutput_at(self, index, value):
18285 self.computeroutput[index] = value
18286 def get_subscript(self):
18287 return self.subscript
18288 def set_subscript(self, subscript):
18289 self.subscript = subscript
18290 def add_subscript(self, value):
18291 self.subscript.append(value)
18292 def insert_subscript_at(self, index, value):
18293 self.subscript.insert(index, value)
18294 def replace_subscript_at(self, index, value):
18295 self.subscript[index] = value
18297 return self.superscript
18298 def set_superscript(self, superscript):
18299 self.superscript = superscript
18300 def add_superscript(self, value):
18301 self.superscript.append(value)
18302 def insert_superscript_at(self, index, value):
18303 self.superscript.insert(index, value)
18304 def replace_superscript_at(self, index, value):
18305 self.superscript[index] = value
18306 def get_center(self):
18307 return self.center
18308 def set_center(self, center):
18309 self.center = center
18310 def add_center(self, value):
18311 self.center.append(value)
18312 def insert_center_at(self, index, value):
18313 self.center.insert(index, value)
18314 def replace_center_at(self, index, value):
18315 self.center[index] = value
18316 def get_small(self):
18317 return self.small
18318 def set_small(self, small):
18319 self.small = small
18320 def add_small(self, value):
18321 self.small.append(value)
18322 def insert_small_at(self, index, value):
18323 self.small.insert(index, value)
18324 def replace_small_at(self, index, value):
18325 self.small[index] = value
18326 def get_cite(self):
18327 return self.cite
18328 def set_cite(self, cite):
18329 self.cite = cite
18330 def add_cite(self, value):
18331 self.cite.append(value)
18332 def insert_cite_at(self, index, value):
18333 self.cite.insert(index, value)
18334 def replace_cite_at(self, index, value):
18335 self.cite[index] = value
18336 def get_del(self):
18337 return self.del_
18338 def set_del(self, del_):
18339 self.del_ = del_
18340 def add_del(self, value):
18341 self.del_.append(value)
18342 def insert_del_at(self, index, value):
18343 self.del_.insert(index, value)
18344 def replace_del_at(self, index, value):
18345 self.del_[index] = value
18346 def get_ins(self):
18347 return self.ins
18348 def set_ins(self, ins):
18349 self.ins = ins
18350 def add_ins(self, value):
18351 self.ins.append(value)
18352 def insert_ins_at(self, index, value):
18353 self.ins.insert(index, value)
18354 def replace_ins_at(self, index, value):
18355 self.ins[index] = value
18356 def get_htmlonly(self):
18357 return self.htmlonly
18358 def set_htmlonly(self, htmlonly):
18359 self.htmlonly = htmlonly
18360 def add_htmlonly(self, value):
18361 self.htmlonly.append(value)
18362 def insert_htmlonly_at(self, index, value):
18363 self.htmlonly.insert(index, value)
18364 def replace_htmlonly_at(self, index, value):
18365 self.htmlonly[index] = value
18366 def get_manonly(self):
18367 return self.manonly
18368 def set_manonly(self, manonly):
18369 self.manonly = manonly
18370 def add_manonly(self, value):
18371 self.manonly.append(value)
18372 def insert_manonly_at(self, index, value):
18373 self.manonly.insert(index, value)
18374 def replace_manonly_at(self, index, value):
18375 self.manonly[index] = value
18376 def get_xmlonly(self):
18377 return self.xmlonly
18378 def set_xmlonly(self, xmlonly):
18379 self.xmlonly = xmlonly
18380 def add_xmlonly(self, value):
18381 self.xmlonly.append(value)
18382 def insert_xmlonly_at(self, index, value):
18383 self.xmlonly.insert(index, value)
18384 def replace_xmlonly_at(self, index, value):
18385 self.xmlonly[index] = value
18386 def get_rtfonly(self):
18387 return self.rtfonly
18388 def set_rtfonly(self, rtfonly):
18389 self.rtfonly = rtfonly
18390 def add_rtfonly(self, value):
18391 self.rtfonly.append(value)
18392 def insert_rtfonly_at(self, index, value):
18393 self.rtfonly.insert(index, value)
18394 def replace_rtfonly_at(self, index, value):
18395 self.rtfonly[index] = value
18396 def get_latexonly(self):
18397 return self.latexonly
18398 def set_latexonly(self, latexonly):
18399 self.latexonly = latexonly
18400 def add_latexonly(self, value):
18401 self.latexonly.append(value)
18402 def insert_latexonly_at(self, index, value):
18403 self.latexonly.insert(index, value)
18404 def replace_latexonly_at(self, index, value):
18405 self.latexonly[index] = value
18407 return self.docbookonly
18408 def set_docbookonly(self, docbookonly):
18409 self.docbookonly = docbookonly
18410 def add_docbookonly(self, value):
18411 self.docbookonly.append(value)
18412 def insert_docbookonly_at(self, index, value):
18413 self.docbookonly.insert(index, value)
18414 def replace_docbookonly_at(self, index, value):
18415 self.docbookonly[index] = value
18416 def get_image(self):
18417 return self.image
18418 def set_image(self, image):
18419 self.image = image
18420 def add_image(self, value):
18421 self.image.append(value)
18422 def insert_image_at(self, index, value):
18423 self.image.insert(index, value)
18424 def replace_image_at(self, index, value):
18425 self.image[index] = value
18426 def get_dot(self):
18427 return self.dot
18428 def set_dot(self, dot):
18429 self.dot = dot
18430 def add_dot(self, value):
18431 self.dot.append(value)
18432 def insert_dot_at(self, index, value):
18433 self.dot.insert(index, value)
18434 def replace_dot_at(self, index, value):
18435 self.dot[index] = value
18436 def get_msc(self):
18437 return self.msc
18438 def set_msc(self, msc):
18439 self.msc = msc
18440 def add_msc(self, value):
18441 self.msc.append(value)
18442 def insert_msc_at(self, index, value):
18443 self.msc.insert(index, value)
18444 def replace_msc_at(self, index, value):
18445 self.msc[index] = value
18446 def get_plantuml(self):
18447 return self.plantuml
18448 def set_plantuml(self, plantuml):
18449 self.plantuml = plantuml
18450 def add_plantuml(self, value):
18451 self.plantuml.append(value)
18452 def insert_plantuml_at(self, index, value):
18453 self.plantuml.insert(index, value)
18454 def replace_plantuml_at(self, index, value):
18455 self.plantuml[index] = value
18456 def get_anchor(self):
18457 return self.anchor
18458 def set_anchor(self, anchor):
18459 self.anchor = anchor
18460 def add_anchor(self, value):
18461 self.anchor.append(value)
18462 def insert_anchor_at(self, index, value):
18463 self.anchor.insert(index, value)
18464 def replace_anchor_at(self, index, value):
18465 self.anchor[index] = value
18466 def get_formula(self):
18467 return self.formula
18468 def set_formula(self, formula):
18469 self.formula = formula
18470 def add_formula(self, value):
18471 self.formula.append(value)
18472 def insert_formula_at(self, index, value):
18473 self.formula.insert(index, value)
18474 def replace_formula_at(self, index, value):
18475 self.formula[index] = value
18476 def get_ref(self):
18477 return self.ref
18478 def set_ref(self, ref):
18479 self.ref = ref
18480 def add_ref(self, value):
18481 self.ref.append(value)
18482 def insert_ref_at(self, index, value):
18483 self.ref.insert(index, value)
18484 def replace_ref_at(self, index, value):
18485 self.ref[index] = value
18486 def get_emoji(self):
18487 return self.emoji
18488 def set_emoji(self, emoji):
18489 self.emoji = emoji
18490 def add_emoji(self, value):
18491 self.emoji.append(value)
18492 def insert_emoji_at(self, index, value):
18493 self.emoji.insert(index, value)
18494 def replace_emoji_at(self, index, value):
18495 self.emoji[index] = value
18496 def get_linebreak(self):
18497 return self.linebreak
18498 def set_linebreak(self, linebreak):
18499 self.linebreak = linebreak
18500 def add_linebreak(self, value):
18501 self.linebreak.append(value)
18502 def insert_linebreak_at(self, index, value):
18503 self.linebreak.insert(index, value)
18504 def replace_linebreak_at(self, index, value):
18505 self.linebreak[index] = value
18506 def get_id(self):
18507 return self.id
18508 def set_id(self, id):
18509 self.id = id
18510 def get_valueOf_(self): return self.valueOf_
18511 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
18512 def hasContent_(self):
18513 if (
18514 self.ulink or
18515 self.bold or
18516 self.s or
18517 self.strike or
18518 self.underline or
18519 self.emphasis or
18520 self.computeroutput or
18521 self.subscript or
18522 self.superscript or
18523 self.center or
18524 self.small or
18525 self.cite or
18526 self.del_ or
18527 self.ins or
18528 self.htmlonly or
18529 self.manonly or
18530 self.xmlonly or
18531 self.rtfonly or
18532 self.latexonly or
18533 self.docbookonly or
18534 self.image or
18535 self.dot or
18536 self.msc or
18537 self.plantuml or
18538 self.anchor or
18539 self.formula or
18540 self.ref or
18541 self.emoji or
18542 self.linebreak or
18543 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
18544 self.content_
18545 ):
18546 return True
18547 else:
18548 return False
18549 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCaptionType', pretty_print=True):
18550 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docCaptionType')
18551 if imported_ns_def_ is not None:
18552 namespacedef_ = imported_ns_def_
18553 if pretty_print:
18554 eol_ = '\n'
18555 else:
18556 eol_ = ''
18557 if self.original_tagname_ is not None and name_ == 'docCaptionType':
18558 name_ = self.original_tagname_
18559 if UseCapturedNS_ and self.ns_prefix_:
18560 namespaceprefix_ = self.ns_prefix_ + ':'
18561 showIndent(outfile, level, pretty_print)
18562 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
18563 already_processed = set()
18564 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docCaptionType')
18565 if self.hasContent_hasContent_():
18566 outfile.write('>%s' % (eol_, ))
18567 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docCaptionType', pretty_print=pretty_print)
18568 showIndent(outfile, level, pretty_print)
18569 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
18570 else:
18571 outfile.write('/>%s' % (eol_, ))
18572 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docCaptionType'):
18573 if self.id is not None and 'id' not in already_processed:
18574 already_processed.add('id')
18575 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
18576 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCaptionType', fromsubclass_=False, pretty_print=True):
18577 if not fromsubclass_:
18578 for item_ in self.content_:
18579 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
18580 if pretty_print:
18581 eol_ = '\n'
18582 else:
18583 eol_ = ''
18584 for ulink_ in self.ulink:
18585 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
18586 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
18587 for bold_ in self.bold:
18588 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
18589 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
18590 for s_ in self.s:
18591 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
18592 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
18593 for strike_ in self.strike:
18594 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
18595 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
18596 for underline_ in self.underline:
18597 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
18598 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
18599 for emphasis_ in self.emphasis:
18600 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
18601 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
18602 for computeroutput_ in self.computeroutput:
18603 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
18604 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
18605 for subscript_ in self.subscript:
18606 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
18607 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
18608 for superscript_ in self.superscript:
18609 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
18610 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
18611 for center_ in self.center:
18612 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
18613 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
18614 for small_ in self.small:
18615 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
18616 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
18617 for cite_ in self.cite:
18618 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
18619 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
18620 for del_ in self.del_:
18621 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
18622 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
18623 for ins_ in self.ins:
18624 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
18625 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
18626 for htmlonly_ in self.htmlonly:
18627 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
18628 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
18629 for manonly_ in self.manonly:
18630 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
18631 showIndent(outfile, level, pretty_print)
18632 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
18633 for xmlonly_ in self.xmlonly:
18634 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
18635 showIndent(outfile, level, pretty_print)
18636 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
18637 for rtfonly_ in self.rtfonly:
18638 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
18639 showIndent(outfile, level, pretty_print)
18640 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
18641 for latexonly_ in self.latexonly:
18642 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
18643 showIndent(outfile, level, pretty_print)
18644 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
18645 for docbookonly_ in self.docbookonly:
18646 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
18647 showIndent(outfile, level, pretty_print)
18648 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
18649 for image_ in self.image:
18650 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
18651 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
18652 for dot_ in self.dot:
18653 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
18654 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
18655 for msc_ in self.msc:
18656 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
18657 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
18658 for plantuml_ in self.plantuml:
18659 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
18660 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
18661 for anchor_ in self.anchor:
18662 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
18663 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
18664 for formula_ in self.formula:
18665 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
18666 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
18667 for ref_ in self.ref:
18668 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
18669 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
18670 for emoji_ in self.emoji:
18671 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
18672 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
18673 for linebreak_ in self.linebreak:
18674 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
18675 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
18676 def build(self, node, gds_collector_=None):
18677 self.gds_collector_ = gds_collector_
18678 if SaveElementTreeNode:
18679 self.gds_elementtree_node_ = node
18680 already_processed = set()
18681 self.ns_prefix_ = node.prefix
18682 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
18683 self.valueOf_ = get_all_text_(node)
18684 if node.text is not None:
18685 obj_ = self.mixedclass_(MixedContainer.CategoryText,
18686 MixedContainer.TypeNone, '', node.text)
18687 self.content_.append(obj_)
18688 for child in node:
18689 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
18690 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
18691 return self
18692 def buildAttributes(self, node, attrs, already_processed):
18693 value = find_attr_value_('id', node)
18694 if value is not None and 'id' not in already_processed:
18695 already_processed.add('id')
18696 self.id = value
18697 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
18698 if nodeName_ == 'ulink':
18699 obj_ = docURLLink.factory(parent_object_=self)
18700 obj_.build(child_, gds_collector_=gds_collector_)
18701 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18702 MixedContainer.TypeNone, 'ulink', obj_)
18703 self.content_.append(obj_)
18704 if hasattr(self, 'add_ulink'):
18705 self.add_ulinkadd_ulink(obj_.value)
18706 elif hasattr(self, 'set_ulink'):
18707 self.set_ulinkset_ulink(obj_.value)
18708 elif nodeName_ == 'bold':
18709 obj_ = docMarkupType.factory(parent_object_=self)
18710 obj_.build(child_, gds_collector_=gds_collector_)
18711 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18712 MixedContainer.TypeNone, 'bold', obj_)
18713 self.content_.append(obj_)
18714 if hasattr(self, 'add_bold'):
18715 self.add_boldadd_bold(obj_.value)
18716 elif hasattr(self, 'set_bold'):
18717 self.set_boldset_bold(obj_.value)
18718 elif nodeName_ == 's':
18719 obj_ = docMarkupType.factory(parent_object_=self)
18720 obj_.build(child_, gds_collector_=gds_collector_)
18721 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18722 MixedContainer.TypeNone, 's', obj_)
18723 self.content_.append(obj_)
18724 if hasattr(self, 'add_s'):
18725 self.add_sadd_s(obj_.value)
18726 elif hasattr(self, 'set_s'):
18727 self.set_sset_s(obj_.value)
18728 elif nodeName_ == 'strike':
18729 obj_ = docMarkupType.factory(parent_object_=self)
18730 obj_.build(child_, gds_collector_=gds_collector_)
18731 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18732 MixedContainer.TypeNone, 'strike', obj_)
18733 self.content_.append(obj_)
18734 if hasattr(self, 'add_strike'):
18735 self.add_strikeadd_strike(obj_.value)
18736 elif hasattr(self, 'set_strike'):
18737 self.set_strikeset_strike(obj_.value)
18738 elif nodeName_ == 'underline':
18739 obj_ = docMarkupType.factory(parent_object_=self)
18740 obj_.build(child_, gds_collector_=gds_collector_)
18741 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18742 MixedContainer.TypeNone, 'underline', obj_)
18743 self.content_.append(obj_)
18744 if hasattr(self, 'add_underline'):
18745 self.add_underlineadd_underline(obj_.value)
18746 elif hasattr(self, 'set_underline'):
18747 self.set_underlineset_underline(obj_.value)
18748 elif nodeName_ == 'emphasis':
18749 obj_ = docMarkupType.factory(parent_object_=self)
18750 obj_.build(child_, gds_collector_=gds_collector_)
18751 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18752 MixedContainer.TypeNone, 'emphasis', obj_)
18753 self.content_.append(obj_)
18754 if hasattr(self, 'add_emphasis'):
18755 self.add_emphasisadd_emphasis(obj_.value)
18756 elif hasattr(self, 'set_emphasis'):
18757 self.set_emphasisset_emphasis(obj_.value)
18758 elif nodeName_ == 'computeroutput':
18759 obj_ = docMarkupType.factory(parent_object_=self)
18760 obj_.build(child_, gds_collector_=gds_collector_)
18761 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18762 MixedContainer.TypeNone, 'computeroutput', obj_)
18763 self.content_.append(obj_)
18764 if hasattr(self, 'add_computeroutput'):
18766 elif hasattr(self, 'set_computeroutput'):
18768 elif nodeName_ == 'subscript':
18769 obj_ = docMarkupType.factory(parent_object_=self)
18770 obj_.build(child_, gds_collector_=gds_collector_)
18771 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18772 MixedContainer.TypeNone, 'subscript', obj_)
18773 self.content_.append(obj_)
18774 if hasattr(self, 'add_subscript'):
18775 self.add_subscriptadd_subscript(obj_.value)
18776 elif hasattr(self, 'set_subscript'):
18777 self.set_subscriptset_subscript(obj_.value)
18778 elif nodeName_ == 'superscript':
18779 obj_ = docMarkupType.factory(parent_object_=self)
18780 obj_.build(child_, gds_collector_=gds_collector_)
18781 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18782 MixedContainer.TypeNone, 'superscript', obj_)
18783 self.content_.append(obj_)
18784 if hasattr(self, 'add_superscript'):
18785 self.add_superscriptadd_superscript(obj_.value)
18786 elif hasattr(self, 'set_superscript'):
18787 self.set_superscriptset_superscript(obj_.value)
18788 elif nodeName_ == 'center':
18789 obj_ = docMarkupType.factory(parent_object_=self)
18790 obj_.build(child_, gds_collector_=gds_collector_)
18791 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18792 MixedContainer.TypeNone, 'center', obj_)
18793 self.content_.append(obj_)
18794 if hasattr(self, 'add_center'):
18795 self.add_centeradd_center(obj_.value)
18796 elif hasattr(self, 'set_center'):
18797 self.set_centerset_center(obj_.value)
18798 elif nodeName_ == 'small':
18799 obj_ = docMarkupType.factory(parent_object_=self)
18800 obj_.build(child_, gds_collector_=gds_collector_)
18801 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18802 MixedContainer.TypeNone, 'small', obj_)
18803 self.content_.append(obj_)
18804 if hasattr(self, 'add_small'):
18805 self.add_smalladd_small(obj_.value)
18806 elif hasattr(self, 'set_small'):
18807 self.set_smallset_small(obj_.value)
18808 elif nodeName_ == 'cite':
18809 obj_ = docMarkupType.factory(parent_object_=self)
18810 obj_.build(child_, gds_collector_=gds_collector_)
18811 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18812 MixedContainer.TypeNone, 'cite', obj_)
18813 self.content_.append(obj_)
18814 if hasattr(self, 'add_cite'):
18815 self.add_citeadd_cite(obj_.value)
18816 elif hasattr(self, 'set_cite'):
18817 self.set_citeset_cite(obj_.value)
18818 elif nodeName_ == 'del':
18819 obj_ = docMarkupType.factory(parent_object_=self)
18820 obj_.build(child_, gds_collector_=gds_collector_)
18821 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18822 MixedContainer.TypeNone, 'del', obj_)
18823 self.content_.append(obj_)
18824 if hasattr(self, 'add_del'):
18825 self.add_deladd_del(obj_.value)
18826 elif hasattr(self, 'set_del'):
18827 self.set_delset_del(obj_.value)
18828 elif nodeName_ == 'ins':
18829 obj_ = docMarkupType.factory(parent_object_=self)
18830 obj_.build(child_, gds_collector_=gds_collector_)
18831 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18832 MixedContainer.TypeNone, 'ins', obj_)
18833 self.content_.append(obj_)
18834 if hasattr(self, 'add_ins'):
18835 self.add_insadd_ins(obj_.value)
18836 elif hasattr(self, 'set_ins'):
18837 self.set_insset_ins(obj_.value)
18838 elif nodeName_ == 'htmlonly':
18839 obj_ = docHtmlOnlyType.factory(parent_object_=self)
18840 obj_.build(child_, gds_collector_=gds_collector_)
18841 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18842 MixedContainer.TypeNone, 'htmlonly', obj_)
18843 self.content_.append(obj_)
18844 if hasattr(self, 'add_htmlonly'):
18845 self.add_htmlonlyadd_htmlonly(obj_.value)
18846 elif hasattr(self, 'set_htmlonly'):
18847 self.set_htmlonlyset_htmlonly(obj_.value)
18848 elif nodeName_ == 'manonly' and child_.text is not None:
18849 valuestr_ = child_.text
18850 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
18851 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
18852 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
18853 MixedContainer.TypeString, 'manonly', valuestr_)
18854 self.content_.append(obj_)
18855 self.manonly_nsprefix_ = child_.prefix
18856 elif nodeName_ == 'xmlonly' and child_.text is not None:
18857 valuestr_ = child_.text
18858 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
18859 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
18860 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
18861 MixedContainer.TypeString, 'xmlonly', valuestr_)
18862 self.content_.append(obj_)
18863 self.xmlonly_nsprefix_ = child_.prefix
18864 elif nodeName_ == 'rtfonly' and child_.text is not None:
18865 valuestr_ = child_.text
18866 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
18867 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
18868 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
18869 MixedContainer.TypeString, 'rtfonly', valuestr_)
18870 self.content_.append(obj_)
18871 self.rtfonly_nsprefix_ = child_.prefix
18872 elif nodeName_ == 'latexonly' and child_.text is not None:
18873 valuestr_ = child_.text
18874 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
18875 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
18876 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
18877 MixedContainer.TypeString, 'latexonly', valuestr_)
18878 self.content_.append(obj_)
18879 self.latexonly_nsprefix_ = child_.prefix
18880 elif nodeName_ == 'docbookonly' and child_.text is not None:
18881 valuestr_ = child_.text
18882 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
18883 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
18884 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
18885 MixedContainer.TypeString, 'docbookonly', valuestr_)
18886 self.content_.append(obj_)
18887 self.docbookonly_nsprefix_ = child_.prefix
18888 elif nodeName_ == 'image':
18889 obj_ = docImageType.factory(parent_object_=self)
18890 obj_.build(child_, gds_collector_=gds_collector_)
18891 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18892 MixedContainer.TypeNone, 'image', obj_)
18893 self.content_.append(obj_)
18894 if hasattr(self, 'add_image'):
18895 self.add_imageadd_image(obj_.value)
18896 elif hasattr(self, 'set_image'):
18897 self.set_imageset_image(obj_.value)
18898 elif nodeName_ == 'dot':
18899 obj_ = docDotMscType.factory(parent_object_=self)
18900 obj_.build(child_, gds_collector_=gds_collector_)
18901 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18902 MixedContainer.TypeNone, 'dot', obj_)
18903 self.content_.append(obj_)
18904 if hasattr(self, 'add_dot'):
18905 self.add_dotadd_dot(obj_.value)
18906 elif hasattr(self, 'set_dot'):
18907 self.set_dotset_dot(obj_.value)
18908 elif nodeName_ == 'msc':
18909 obj_ = docDotMscType.factory(parent_object_=self)
18910 obj_.build(child_, gds_collector_=gds_collector_)
18911 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18912 MixedContainer.TypeNone, 'msc', obj_)
18913 self.content_.append(obj_)
18914 if hasattr(self, 'add_msc'):
18915 self.add_mscadd_msc(obj_.value)
18916 elif hasattr(self, 'set_msc'):
18917 self.set_mscset_msc(obj_.value)
18918 elif nodeName_ == 'plantuml':
18919 obj_ = docPlantumlType.factory(parent_object_=self)
18920 obj_.build(child_, gds_collector_=gds_collector_)
18921 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18922 MixedContainer.TypeNone, 'plantuml', obj_)
18923 self.content_.append(obj_)
18924 if hasattr(self, 'add_plantuml'):
18925 self.add_plantumladd_plantuml(obj_.value)
18926 elif hasattr(self, 'set_plantuml'):
18927 self.set_plantumlset_plantuml(obj_.value)
18928 elif nodeName_ == 'anchor':
18929 obj_ = docAnchorType.factory(parent_object_=self)
18930 obj_.build(child_, gds_collector_=gds_collector_)
18931 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18932 MixedContainer.TypeNone, 'anchor', obj_)
18933 self.content_.append(obj_)
18934 if hasattr(self, 'add_anchor'):
18935 self.add_anchoradd_anchor(obj_.value)
18936 elif hasattr(self, 'set_anchor'):
18937 self.set_anchorset_anchor(obj_.value)
18938 elif nodeName_ == 'formula':
18939 obj_ = docFormulaType.factory(parent_object_=self)
18940 obj_.build(child_, gds_collector_=gds_collector_)
18941 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18942 MixedContainer.TypeNone, 'formula', obj_)
18943 self.content_.append(obj_)
18944 if hasattr(self, 'add_formula'):
18945 self.add_formulaadd_formula(obj_.value)
18946 elif hasattr(self, 'set_formula'):
18947 self.set_formulaset_formula(obj_.value)
18948 elif nodeName_ == 'ref':
18949 obj_ = docRefTextType.factory(parent_object_=self)
18950 obj_.build(child_, gds_collector_=gds_collector_)
18951 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18952 MixedContainer.TypeNone, 'ref', obj_)
18953 self.content_.append(obj_)
18954 if hasattr(self, 'add_ref'):
18955 self.add_refadd_ref(obj_.value)
18956 elif hasattr(self, 'set_ref'):
18957 self.set_refset_ref(obj_.value)
18958 elif nodeName_ == 'emoji':
18959 obj_ = docEmojiType.factory(parent_object_=self)
18960 obj_.build(child_, gds_collector_=gds_collector_)
18961 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18962 MixedContainer.TypeNone, 'emoji', obj_)
18963 self.content_.append(obj_)
18964 if hasattr(self, 'add_emoji'):
18965 self.add_emojiadd_emoji(obj_.value)
18966 elif hasattr(self, 'set_emoji'):
18967 self.set_emojiset_emoji(obj_.value)
18968 elif nodeName_ == 'linebreak':
18969 obj_ = docEmptyType.factory(parent_object_=self)
18970 obj_.build(child_, gds_collector_=gds_collector_)
18971 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
18972 MixedContainer.TypeNone, 'linebreak', obj_)
18973 self.content_.append(obj_)
18974 if hasattr(self, 'add_linebreak'):
18975 self.add_linebreakadd_linebreak(obj_.value)
18976 elif hasattr(self, 'set_linebreak'):
18977 self.set_linebreakset_linebreak(obj_.value)
18978 if not fromsubclass_ and child_.tail is not None:
18979 obj_ = self.mixedclass_(MixedContainer.CategoryText,
18980 MixedContainer.TypeNone, '', child_.tail)
18981 self.content_.append(obj_)
18982# end class docCaptionType
18983
18984
18986 __hash__ = GeneratedsSuper.__hash__
18987 subclass = None
18988 superclass = None
18989 def __init__(self, level=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
18990 self.gds_collector_ = gds_collector_
18991 self.gds_elementtree_node_ = None
18992 self.original_tagname_ = None
18993 self.parent_object_ = kwargs_.get('parent_object_')
18994 self.ns_prefix_ = None
18995 self.level = _cast(int, level)
18996 self.level_nsprefix_ = None
18997 if ulink is None:
18998 self.ulink = []
18999 else:
19000 self.ulink = ulink
19001 self.ulink_nsprefix_ = None
19002 if bold is None:
19003 self.bold = []
19004 else:
19005 self.bold = bold
19006 self.bold_nsprefix_ = None
19007 if s is None:
19008 self.s = []
19009 else:
19010 self.s = s
19011 self.s_nsprefix_ = None
19012 if strike is None:
19013 self.strike = []
19014 else:
19015 self.strike = strike
19016 self.strike_nsprefix_ = None
19017 if underline is None:
19018 self.underline = []
19019 else:
19020 self.underline = underline
19021 self.underline_nsprefix_ = None
19022 if emphasis is None:
19023 self.emphasis = []
19024 else:
19025 self.emphasis = emphasis
19026 self.emphasis_nsprefix_ = None
19027 if computeroutput is None:
19028 self.computeroutput = []
19029 else:
19030 self.computeroutput = computeroutput
19031 self.computeroutput_nsprefix_ = None
19032 if subscript is None:
19033 self.subscript = []
19034 else:
19035 self.subscript = subscript
19036 self.subscript_nsprefix_ = None
19037 if superscript is None:
19038 self.superscript = []
19039 else:
19040 self.superscript = superscript
19041 self.superscript_nsprefix_ = None
19042 if center is None:
19043 self.center = []
19044 else:
19045 self.center = center
19046 self.center_nsprefix_ = None
19047 if small is None:
19048 self.small = []
19049 else:
19050 self.small = small
19051 self.small_nsprefix_ = None
19052 if cite is None:
19053 self.cite = []
19054 else:
19055 self.cite = cite
19056 self.cite_nsprefix_ = None
19057 if del_ is None:
19058 self.del_ = []
19059 else:
19060 self.del_ = del_
19061 self.del__nsprefix_ = None
19062 if ins is None:
19063 self.ins = []
19064 else:
19065 self.ins = ins
19066 self.ins_nsprefix_ = None
19067 if htmlonly is None:
19068 self.htmlonly = []
19069 else:
19070 self.htmlonly = htmlonly
19071 self.htmlonly_nsprefix_ = None
19072 if manonly is None:
19073 self.manonly = []
19074 else:
19075 self.manonly = manonly
19076 self.manonly_nsprefix_ = None
19077 if xmlonly is None:
19078 self.xmlonly = []
19079 else:
19080 self.xmlonly = xmlonly
19081 self.xmlonly_nsprefix_ = None
19082 if rtfonly is None:
19083 self.rtfonly = []
19084 else:
19085 self.rtfonly = rtfonly
19086 self.rtfonly_nsprefix_ = None
19087 if latexonly is None:
19088 self.latexonly = []
19089 else:
19090 self.latexonly = latexonly
19091 self.latexonly_nsprefix_ = None
19092 if docbookonly is None:
19093 self.docbookonly = []
19094 else:
19095 self.docbookonly = docbookonly
19096 self.docbookonly_nsprefix_ = None
19097 if image is None:
19098 self.image = []
19099 else:
19100 self.image = image
19101 self.image_nsprefix_ = None
19102 if dot is None:
19103 self.dot = []
19104 else:
19105 self.dot = dot
19106 self.dot_nsprefix_ = None
19107 if msc is None:
19108 self.msc = []
19109 else:
19110 self.msc = msc
19111 self.msc_nsprefix_ = None
19112 if plantuml is None:
19113 self.plantuml = []
19114 else:
19115 self.plantuml = plantuml
19116 self.plantuml_nsprefix_ = None
19117 if anchor is None:
19118 self.anchor = []
19119 else:
19120 self.anchor = anchor
19121 self.anchor_nsprefix_ = None
19122 if formula is None:
19123 self.formula = []
19124 else:
19125 self.formula = formula
19126 self.formula_nsprefix_ = None
19127 if ref is None:
19128 self.ref = []
19129 else:
19130 self.ref = ref
19131 self.ref_nsprefix_ = None
19132 if emoji is None:
19133 self.emoji = []
19134 else:
19135 self.emoji = emoji
19136 self.emoji_nsprefix_ = None
19137 if linebreak is None:
19138 self.linebreak = []
19139 else:
19140 self.linebreak = linebreak
19141 self.linebreak_nsprefix_ = None
19142 self.valueOf_ = valueOf_
19143 if mixedclass_ is None:
19144 self.mixedclass_ = MixedContainer
19145 else:
19146 self.mixedclass_ = mixedclass_
19147 if content_ is None:
19148 self.content_ = []
19149 else:
19150 self.content_ = content_
19151 self.valueOf_ = valueOf_
19152 def factory(*args_, **kwargs_):
19153 if CurrentSubclassModule_ is not None:
19154 subclass = getSubclassFromModule_(
19155 CurrentSubclassModule_, docHeadingType)
19156 if subclass is not None:
19157 return subclass(*args_, **kwargs_)
19158 if docHeadingType.subclass:
19159 return docHeadingType.subclass(*args_, **kwargs_)
19160 else:
19161 return docHeadingType(*args_, **kwargs_)
19162 factory = staticmethod(factory)
19164 return self.ns_prefix_
19165 def set_ns_prefix_(self, ns_prefix):
19166 self.ns_prefix_ = ns_prefix
19167 def get_ulink(self):
19168 return self.ulink
19169 def set_ulink(self, ulink):
19170 self.ulink = ulink
19171 def add_ulink(self, value):
19172 self.ulink.append(value)
19173 def insert_ulink_at(self, index, value):
19174 self.ulink.insert(index, value)
19175 def replace_ulink_at(self, index, value):
19176 self.ulink[index] = value
19177 def get_bold(self):
19178 return self.bold
19179 def set_bold(self, bold):
19180 self.bold = bold
19181 def add_bold(self, value):
19182 self.bold.append(value)
19183 def insert_bold_at(self, index, value):
19184 self.bold.insert(index, value)
19185 def replace_bold_at(self, index, value):
19186 self.bold[index] = value
19187 def get_s(self):
19188 return self.s
19189 def set_s(self, s):
19190 self.s = s
19191 def add_s(self, value):
19192 self.s.append(value)
19193 def insert_s_at(self, index, value):
19194 self.s.insert(index, value)
19195 def replace_s_at(self, index, value):
19196 self.s[index] = value
19197 def get_strike(self):
19198 return self.strike
19199 def set_strike(self, strike):
19200 self.strike = strike
19201 def add_strike(self, value):
19202 self.strike.append(value)
19203 def insert_strike_at(self, index, value):
19204 self.strike.insert(index, value)
19205 def replace_strike_at(self, index, value):
19206 self.strike[index] = value
19207 def get_underline(self):
19208 return self.underline
19209 def set_underline(self, underline):
19210 self.underline = underline
19211 def add_underline(self, value):
19212 self.underline.append(value)
19213 def insert_underline_at(self, index, value):
19214 self.underline.insert(index, value)
19215 def replace_underline_at(self, index, value):
19216 self.underline[index] = value
19217 def get_emphasis(self):
19218 return self.emphasis
19219 def set_emphasis(self, emphasis):
19220 self.emphasis = emphasis
19221 def add_emphasis(self, value):
19222 self.emphasis.append(value)
19223 def insert_emphasis_at(self, index, value):
19224 self.emphasis.insert(index, value)
19225 def replace_emphasis_at(self, index, value):
19226 self.emphasis[index] = value
19228 return self.computeroutput
19229 def set_computeroutput(self, computeroutput):
19230 self.computeroutput = computeroutput
19231 def add_computeroutput(self, value):
19232 self.computeroutput.append(value)
19233 def insert_computeroutput_at(self, index, value):
19234 self.computeroutput.insert(index, value)
19235 def replace_computeroutput_at(self, index, value):
19236 self.computeroutput[index] = value
19237 def get_subscript(self):
19238 return self.subscript
19239 def set_subscript(self, subscript):
19240 self.subscript = subscript
19241 def add_subscript(self, value):
19242 self.subscript.append(value)
19243 def insert_subscript_at(self, index, value):
19244 self.subscript.insert(index, value)
19245 def replace_subscript_at(self, index, value):
19246 self.subscript[index] = value
19248 return self.superscript
19249 def set_superscript(self, superscript):
19250 self.superscript = superscript
19251 def add_superscript(self, value):
19252 self.superscript.append(value)
19253 def insert_superscript_at(self, index, value):
19254 self.superscript.insert(index, value)
19255 def replace_superscript_at(self, index, value):
19256 self.superscript[index] = value
19257 def get_center(self):
19258 return self.center
19259 def set_center(self, center):
19260 self.center = center
19261 def add_center(self, value):
19262 self.center.append(value)
19263 def insert_center_at(self, index, value):
19264 self.center.insert(index, value)
19265 def replace_center_at(self, index, value):
19266 self.center[index] = value
19267 def get_small(self):
19268 return self.small
19269 def set_small(self, small):
19270 self.small = small
19271 def add_small(self, value):
19272 self.small.append(value)
19273 def insert_small_at(self, index, value):
19274 self.small.insert(index, value)
19275 def replace_small_at(self, index, value):
19276 self.small[index] = value
19277 def get_cite(self):
19278 return self.cite
19279 def set_cite(self, cite):
19280 self.cite = cite
19281 def add_cite(self, value):
19282 self.cite.append(value)
19283 def insert_cite_at(self, index, value):
19284 self.cite.insert(index, value)
19285 def replace_cite_at(self, index, value):
19286 self.cite[index] = value
19287 def get_del(self):
19288 return self.del_
19289 def set_del(self, del_):
19290 self.del_ = del_
19291 def add_del(self, value):
19292 self.del_.append(value)
19293 def insert_del_at(self, index, value):
19294 self.del_.insert(index, value)
19295 def replace_del_at(self, index, value):
19296 self.del_[index] = value
19297 def get_ins(self):
19298 return self.ins
19299 def set_ins(self, ins):
19300 self.ins = ins
19301 def add_ins(self, value):
19302 self.ins.append(value)
19303 def insert_ins_at(self, index, value):
19304 self.ins.insert(index, value)
19305 def replace_ins_at(self, index, value):
19306 self.ins[index] = value
19307 def get_htmlonly(self):
19308 return self.htmlonly
19309 def set_htmlonly(self, htmlonly):
19310 self.htmlonly = htmlonly
19311 def add_htmlonly(self, value):
19312 self.htmlonly.append(value)
19313 def insert_htmlonly_at(self, index, value):
19314 self.htmlonly.insert(index, value)
19315 def replace_htmlonly_at(self, index, value):
19316 self.htmlonly[index] = value
19317 def get_manonly(self):
19318 return self.manonly
19319 def set_manonly(self, manonly):
19320 self.manonly = manonly
19321 def add_manonly(self, value):
19322 self.manonly.append(value)
19323 def insert_manonly_at(self, index, value):
19324 self.manonly.insert(index, value)
19325 def replace_manonly_at(self, index, value):
19326 self.manonly[index] = value
19327 def get_xmlonly(self):
19328 return self.xmlonly
19329 def set_xmlonly(self, xmlonly):
19330 self.xmlonly = xmlonly
19331 def add_xmlonly(self, value):
19332 self.xmlonly.append(value)
19333 def insert_xmlonly_at(self, index, value):
19334 self.xmlonly.insert(index, value)
19335 def replace_xmlonly_at(self, index, value):
19336 self.xmlonly[index] = value
19337 def get_rtfonly(self):
19338 return self.rtfonly
19339 def set_rtfonly(self, rtfonly):
19340 self.rtfonly = rtfonly
19341 def add_rtfonly(self, value):
19342 self.rtfonly.append(value)
19343 def insert_rtfonly_at(self, index, value):
19344 self.rtfonly.insert(index, value)
19345 def replace_rtfonly_at(self, index, value):
19346 self.rtfonly[index] = value
19347 def get_latexonly(self):
19348 return self.latexonly
19349 def set_latexonly(self, latexonly):
19350 self.latexonly = latexonly
19351 def add_latexonly(self, value):
19352 self.latexonly.append(value)
19353 def insert_latexonly_at(self, index, value):
19354 self.latexonly.insert(index, value)
19355 def replace_latexonly_at(self, index, value):
19356 self.latexonly[index] = value
19358 return self.docbookonly
19359 def set_docbookonly(self, docbookonly):
19360 self.docbookonly = docbookonly
19361 def add_docbookonly(self, value):
19362 self.docbookonly.append(value)
19363 def insert_docbookonly_at(self, index, value):
19364 self.docbookonly.insert(index, value)
19365 def replace_docbookonly_at(self, index, value):
19366 self.docbookonly[index] = value
19367 def get_image(self):
19368 return self.image
19369 def set_image(self, image):
19370 self.image = image
19371 def add_image(self, value):
19372 self.image.append(value)
19373 def insert_image_at(self, index, value):
19374 self.image.insert(index, value)
19375 def replace_image_at(self, index, value):
19376 self.image[index] = value
19377 def get_dot(self):
19378 return self.dot
19379 def set_dot(self, dot):
19380 self.dot = dot
19381 def add_dot(self, value):
19382 self.dot.append(value)
19383 def insert_dot_at(self, index, value):
19384 self.dot.insert(index, value)
19385 def replace_dot_at(self, index, value):
19386 self.dot[index] = value
19387 def get_msc(self):
19388 return self.msc
19389 def set_msc(self, msc):
19390 self.msc = msc
19391 def add_msc(self, value):
19392 self.msc.append(value)
19393 def insert_msc_at(self, index, value):
19394 self.msc.insert(index, value)
19395 def replace_msc_at(self, index, value):
19396 self.msc[index] = value
19397 def get_plantuml(self):
19398 return self.plantuml
19399 def set_plantuml(self, plantuml):
19400 self.plantuml = plantuml
19401 def add_plantuml(self, value):
19402 self.plantuml.append(value)
19403 def insert_plantuml_at(self, index, value):
19404 self.plantuml.insert(index, value)
19405 def replace_plantuml_at(self, index, value):
19406 self.plantuml[index] = value
19407 def get_anchor(self):
19408 return self.anchor
19409 def set_anchor(self, anchor):
19410 self.anchor = anchor
19411 def add_anchor(self, value):
19412 self.anchor.append(value)
19413 def insert_anchor_at(self, index, value):
19414 self.anchor.insert(index, value)
19415 def replace_anchor_at(self, index, value):
19416 self.anchor[index] = value
19417 def get_formula(self):
19418 return self.formula
19419 def set_formula(self, formula):
19420 self.formula = formula
19421 def add_formula(self, value):
19422 self.formula.append(value)
19423 def insert_formula_at(self, index, value):
19424 self.formula.insert(index, value)
19425 def replace_formula_at(self, index, value):
19426 self.formula[index] = value
19427 def get_ref(self):
19428 return self.ref
19429 def set_ref(self, ref):
19430 self.ref = ref
19431 def add_ref(self, value):
19432 self.ref.append(value)
19433 def insert_ref_at(self, index, value):
19434 self.ref.insert(index, value)
19435 def replace_ref_at(self, index, value):
19436 self.ref[index] = value
19437 def get_emoji(self):
19438 return self.emoji
19439 def set_emoji(self, emoji):
19440 self.emoji = emoji
19441 def add_emoji(self, value):
19442 self.emoji.append(value)
19443 def insert_emoji_at(self, index, value):
19444 self.emoji.insert(index, value)
19445 def replace_emoji_at(self, index, value):
19446 self.emoji[index] = value
19447 def get_linebreak(self):
19448 return self.linebreak
19449 def set_linebreak(self, linebreak):
19450 self.linebreak = linebreak
19451 def add_linebreak(self, value):
19452 self.linebreak.append(value)
19453 def insert_linebreak_at(self, index, value):
19454 self.linebreak.insert(index, value)
19455 def replace_linebreak_at(self, index, value):
19456 self.linebreak[index] = value
19457 def get_level(self):
19458 return self.level
19459 def set_level(self, level):
19460 self.level = level
19461 def get_valueOf_(self): return self.valueOf_
19462 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
19463 def hasContent_(self):
19464 if (
19465 self.ulink or
19466 self.bold or
19467 self.s or
19468 self.strike or
19469 self.underline or
19470 self.emphasis or
19471 self.computeroutput or
19472 self.subscript or
19473 self.superscript or
19474 self.center or
19475 self.small or
19476 self.cite or
19477 self.del_ or
19478 self.ins or
19479 self.htmlonly or
19480 self.manonly or
19481 self.xmlonly or
19482 self.rtfonly or
19483 self.latexonly or
19484 self.docbookonly or
19485 self.image or
19486 self.dot or
19487 self.msc or
19488 self.plantuml or
19489 self.anchor or
19490 self.formula or
19491 self.ref or
19492 self.emoji or
19493 self.linebreak or
19494 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
19495 self.content_
19496 ):
19497 return True
19498 else:
19499 return False
19500 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHeadingType', pretty_print=True):
19501 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docHeadingType')
19502 if imported_ns_def_ is not None:
19503 namespacedef_ = imported_ns_def_
19504 if pretty_print:
19505 eol_ = '\n'
19506 else:
19507 eol_ = ''
19508 if self.original_tagname_ is not None and name_ == 'docHeadingType':
19509 name_ = self.original_tagname_
19510 if UseCapturedNS_ and self.ns_prefix_:
19511 namespaceprefix_ = self.ns_prefix_ + ':'
19512 showIndent(outfile, level, pretty_print)
19513 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
19514 already_processed = set()
19515 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docHeadingType')
19516 if self.hasContent_hasContent_():
19517 outfile.write('>%s' % (eol_, ))
19518 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docHeadingType', pretty_print=pretty_print)
19519 showIndent(outfile, level, pretty_print)
19520 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
19521 else:
19522 outfile.write('/>%s' % (eol_, ))
19523 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docHeadingType'):
19524 if self.level is not None and 'level' not in already_processed:
19525 already_processed.add('level')
19526 outfile.write(' level="%s"' % self.gds_format_integergds_format_integer(self.level, input_name='level'))
19527 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHeadingType', fromsubclass_=False, pretty_print=True):
19528 if not fromsubclass_:
19529 for item_ in self.content_:
19530 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
19531 if pretty_print:
19532 eol_ = '\n'
19533 else:
19534 eol_ = ''
19535 for ulink_ in self.ulink:
19536 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
19537 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
19538 for bold_ in self.bold:
19539 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
19540 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
19541 for s_ in self.s:
19542 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
19543 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
19544 for strike_ in self.strike:
19545 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
19546 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
19547 for underline_ in self.underline:
19548 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
19549 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
19550 for emphasis_ in self.emphasis:
19551 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
19552 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
19553 for computeroutput_ in self.computeroutput:
19554 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
19555 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
19556 for subscript_ in self.subscript:
19557 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
19558 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
19559 for superscript_ in self.superscript:
19560 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
19561 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
19562 for center_ in self.center:
19563 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
19564 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
19565 for small_ in self.small:
19566 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
19567 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
19568 for cite_ in self.cite:
19569 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
19570 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
19571 for del_ in self.del_:
19572 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
19573 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
19574 for ins_ in self.ins:
19575 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
19576 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
19577 for htmlonly_ in self.htmlonly:
19578 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
19579 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
19580 for manonly_ in self.manonly:
19581 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
19582 showIndent(outfile, level, pretty_print)
19583 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
19584 for xmlonly_ in self.xmlonly:
19585 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
19586 showIndent(outfile, level, pretty_print)
19587 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
19588 for rtfonly_ in self.rtfonly:
19589 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
19590 showIndent(outfile, level, pretty_print)
19591 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
19592 for latexonly_ in self.latexonly:
19593 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
19594 showIndent(outfile, level, pretty_print)
19595 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
19596 for docbookonly_ in self.docbookonly:
19597 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
19598 showIndent(outfile, level, pretty_print)
19599 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
19600 for image_ in self.image:
19601 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
19602 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
19603 for dot_ in self.dot:
19604 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
19605 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
19606 for msc_ in self.msc:
19607 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
19608 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
19609 for plantuml_ in self.plantuml:
19610 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
19611 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
19612 for anchor_ in self.anchor:
19613 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
19614 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
19615 for formula_ in self.formula:
19616 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
19617 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
19618 for ref_ in self.ref:
19619 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
19620 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
19621 for emoji_ in self.emoji:
19622 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
19623 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
19624 for linebreak_ in self.linebreak:
19625 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
19626 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
19627 def build(self, node, gds_collector_=None):
19628 self.gds_collector_ = gds_collector_
19629 if SaveElementTreeNode:
19630 self.gds_elementtree_node_ = node
19631 already_processed = set()
19632 self.ns_prefix_ = node.prefix
19633 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
19634 self.valueOf_ = get_all_text_(node)
19635 if node.text is not None:
19636 obj_ = self.mixedclass_(MixedContainer.CategoryText,
19637 MixedContainer.TypeNone, '', node.text)
19638 self.content_.append(obj_)
19639 for child in node:
19640 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
19641 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
19642 return self
19643 def buildAttributes(self, node, attrs, already_processed):
19644 value = find_attr_value_('level', node)
19645 if value is not None and 'level' not in already_processed:
19646 already_processed.add('level')
19647 self.level = self.gds_parse_integergds_parse_integer(value, node, 'level')
19648 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
19649 if nodeName_ == 'ulink':
19650 obj_ = docURLLink.factory(parent_object_=self)
19651 obj_.build(child_, gds_collector_=gds_collector_)
19652 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19653 MixedContainer.TypeNone, 'ulink', obj_)
19654 self.content_.append(obj_)
19655 if hasattr(self, 'add_ulink'):
19656 self.add_ulinkadd_ulink(obj_.value)
19657 elif hasattr(self, 'set_ulink'):
19658 self.set_ulinkset_ulink(obj_.value)
19659 elif nodeName_ == 'bold':
19660 obj_ = docMarkupType.factory(parent_object_=self)
19661 obj_.build(child_, gds_collector_=gds_collector_)
19662 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19663 MixedContainer.TypeNone, 'bold', obj_)
19664 self.content_.append(obj_)
19665 if hasattr(self, 'add_bold'):
19666 self.add_boldadd_bold(obj_.value)
19667 elif hasattr(self, 'set_bold'):
19668 self.set_boldset_bold(obj_.value)
19669 elif nodeName_ == 's':
19670 obj_ = docMarkupType.factory(parent_object_=self)
19671 obj_.build(child_, gds_collector_=gds_collector_)
19672 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19673 MixedContainer.TypeNone, 's', obj_)
19674 self.content_.append(obj_)
19675 if hasattr(self, 'add_s'):
19676 self.add_sadd_s(obj_.value)
19677 elif hasattr(self, 'set_s'):
19678 self.set_sset_s(obj_.value)
19679 elif nodeName_ == 'strike':
19680 obj_ = docMarkupType.factory(parent_object_=self)
19681 obj_.build(child_, gds_collector_=gds_collector_)
19682 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19683 MixedContainer.TypeNone, 'strike', obj_)
19684 self.content_.append(obj_)
19685 if hasattr(self, 'add_strike'):
19686 self.add_strikeadd_strike(obj_.value)
19687 elif hasattr(self, 'set_strike'):
19688 self.set_strikeset_strike(obj_.value)
19689 elif nodeName_ == 'underline':
19690 obj_ = docMarkupType.factory(parent_object_=self)
19691 obj_.build(child_, gds_collector_=gds_collector_)
19692 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19693 MixedContainer.TypeNone, 'underline', obj_)
19694 self.content_.append(obj_)
19695 if hasattr(self, 'add_underline'):
19696 self.add_underlineadd_underline(obj_.value)
19697 elif hasattr(self, 'set_underline'):
19698 self.set_underlineset_underline(obj_.value)
19699 elif nodeName_ == 'emphasis':
19700 obj_ = docMarkupType.factory(parent_object_=self)
19701 obj_.build(child_, gds_collector_=gds_collector_)
19702 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19703 MixedContainer.TypeNone, 'emphasis', obj_)
19704 self.content_.append(obj_)
19705 if hasattr(self, 'add_emphasis'):
19706 self.add_emphasisadd_emphasis(obj_.value)
19707 elif hasattr(self, 'set_emphasis'):
19708 self.set_emphasisset_emphasis(obj_.value)
19709 elif nodeName_ == 'computeroutput':
19710 obj_ = docMarkupType.factory(parent_object_=self)
19711 obj_.build(child_, gds_collector_=gds_collector_)
19712 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19713 MixedContainer.TypeNone, 'computeroutput', obj_)
19714 self.content_.append(obj_)
19715 if hasattr(self, 'add_computeroutput'):
19717 elif hasattr(self, 'set_computeroutput'):
19719 elif nodeName_ == 'subscript':
19720 obj_ = docMarkupType.factory(parent_object_=self)
19721 obj_.build(child_, gds_collector_=gds_collector_)
19722 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19723 MixedContainer.TypeNone, 'subscript', obj_)
19724 self.content_.append(obj_)
19725 if hasattr(self, 'add_subscript'):
19726 self.add_subscriptadd_subscript(obj_.value)
19727 elif hasattr(self, 'set_subscript'):
19728 self.set_subscriptset_subscript(obj_.value)
19729 elif nodeName_ == 'superscript':
19730 obj_ = docMarkupType.factory(parent_object_=self)
19731 obj_.build(child_, gds_collector_=gds_collector_)
19732 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19733 MixedContainer.TypeNone, 'superscript', obj_)
19734 self.content_.append(obj_)
19735 if hasattr(self, 'add_superscript'):
19736 self.add_superscriptadd_superscript(obj_.value)
19737 elif hasattr(self, 'set_superscript'):
19738 self.set_superscriptset_superscript(obj_.value)
19739 elif nodeName_ == 'center':
19740 obj_ = docMarkupType.factory(parent_object_=self)
19741 obj_.build(child_, gds_collector_=gds_collector_)
19742 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19743 MixedContainer.TypeNone, 'center', obj_)
19744 self.content_.append(obj_)
19745 if hasattr(self, 'add_center'):
19746 self.add_centeradd_center(obj_.value)
19747 elif hasattr(self, 'set_center'):
19748 self.set_centerset_center(obj_.value)
19749 elif nodeName_ == 'small':
19750 obj_ = docMarkupType.factory(parent_object_=self)
19751 obj_.build(child_, gds_collector_=gds_collector_)
19752 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19753 MixedContainer.TypeNone, 'small', obj_)
19754 self.content_.append(obj_)
19755 if hasattr(self, 'add_small'):
19756 self.add_smalladd_small(obj_.value)
19757 elif hasattr(self, 'set_small'):
19758 self.set_smallset_small(obj_.value)
19759 elif nodeName_ == 'cite':
19760 obj_ = docMarkupType.factory(parent_object_=self)
19761 obj_.build(child_, gds_collector_=gds_collector_)
19762 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19763 MixedContainer.TypeNone, 'cite', obj_)
19764 self.content_.append(obj_)
19765 if hasattr(self, 'add_cite'):
19766 self.add_citeadd_cite(obj_.value)
19767 elif hasattr(self, 'set_cite'):
19768 self.set_citeset_cite(obj_.value)
19769 elif nodeName_ == 'del':
19770 obj_ = docMarkupType.factory(parent_object_=self)
19771 obj_.build(child_, gds_collector_=gds_collector_)
19772 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19773 MixedContainer.TypeNone, 'del', obj_)
19774 self.content_.append(obj_)
19775 if hasattr(self, 'add_del'):
19776 self.add_deladd_del(obj_.value)
19777 elif hasattr(self, 'set_del'):
19778 self.set_delset_del(obj_.value)
19779 elif nodeName_ == 'ins':
19780 obj_ = docMarkupType.factory(parent_object_=self)
19781 obj_.build(child_, gds_collector_=gds_collector_)
19782 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19783 MixedContainer.TypeNone, 'ins', obj_)
19784 self.content_.append(obj_)
19785 if hasattr(self, 'add_ins'):
19786 self.add_insadd_ins(obj_.value)
19787 elif hasattr(self, 'set_ins'):
19788 self.set_insset_ins(obj_.value)
19789 elif nodeName_ == 'htmlonly':
19790 obj_ = docHtmlOnlyType.factory(parent_object_=self)
19791 obj_.build(child_, gds_collector_=gds_collector_)
19792 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19793 MixedContainer.TypeNone, 'htmlonly', obj_)
19794 self.content_.append(obj_)
19795 if hasattr(self, 'add_htmlonly'):
19796 self.add_htmlonlyadd_htmlonly(obj_.value)
19797 elif hasattr(self, 'set_htmlonly'):
19798 self.set_htmlonlyset_htmlonly(obj_.value)
19799 elif nodeName_ == 'manonly' and child_.text is not None:
19800 valuestr_ = child_.text
19801 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
19802 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
19803 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
19804 MixedContainer.TypeString, 'manonly', valuestr_)
19805 self.content_.append(obj_)
19806 self.manonly_nsprefix_ = child_.prefix
19807 elif nodeName_ == 'xmlonly' and child_.text is not None:
19808 valuestr_ = child_.text
19809 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
19810 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
19811 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
19812 MixedContainer.TypeString, 'xmlonly', valuestr_)
19813 self.content_.append(obj_)
19814 self.xmlonly_nsprefix_ = child_.prefix
19815 elif nodeName_ == 'rtfonly' and child_.text is not None:
19816 valuestr_ = child_.text
19817 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
19818 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
19819 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
19820 MixedContainer.TypeString, 'rtfonly', valuestr_)
19821 self.content_.append(obj_)
19822 self.rtfonly_nsprefix_ = child_.prefix
19823 elif nodeName_ == 'latexonly' and child_.text is not None:
19824 valuestr_ = child_.text
19825 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
19826 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
19827 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
19828 MixedContainer.TypeString, 'latexonly', valuestr_)
19829 self.content_.append(obj_)
19830 self.latexonly_nsprefix_ = child_.prefix
19831 elif nodeName_ == 'docbookonly' and child_.text is not None:
19832 valuestr_ = child_.text
19833 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
19834 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
19835 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
19836 MixedContainer.TypeString, 'docbookonly', valuestr_)
19837 self.content_.append(obj_)
19838 self.docbookonly_nsprefix_ = child_.prefix
19839 elif nodeName_ == 'image':
19840 obj_ = docImageType.factory(parent_object_=self)
19841 obj_.build(child_, gds_collector_=gds_collector_)
19842 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19843 MixedContainer.TypeNone, 'image', obj_)
19844 self.content_.append(obj_)
19845 if hasattr(self, 'add_image'):
19846 self.add_imageadd_image(obj_.value)
19847 elif hasattr(self, 'set_image'):
19848 self.set_imageset_image(obj_.value)
19849 elif nodeName_ == 'dot':
19850 obj_ = docDotMscType.factory(parent_object_=self)
19851 obj_.build(child_, gds_collector_=gds_collector_)
19852 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19853 MixedContainer.TypeNone, 'dot', obj_)
19854 self.content_.append(obj_)
19855 if hasattr(self, 'add_dot'):
19856 self.add_dotadd_dot(obj_.value)
19857 elif hasattr(self, 'set_dot'):
19858 self.set_dotset_dot(obj_.value)
19859 elif nodeName_ == 'msc':
19860 obj_ = docDotMscType.factory(parent_object_=self)
19861 obj_.build(child_, gds_collector_=gds_collector_)
19862 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19863 MixedContainer.TypeNone, 'msc', obj_)
19864 self.content_.append(obj_)
19865 if hasattr(self, 'add_msc'):
19866 self.add_mscadd_msc(obj_.value)
19867 elif hasattr(self, 'set_msc'):
19868 self.set_mscset_msc(obj_.value)
19869 elif nodeName_ == 'plantuml':
19870 obj_ = docPlantumlType.factory(parent_object_=self)
19871 obj_.build(child_, gds_collector_=gds_collector_)
19872 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19873 MixedContainer.TypeNone, 'plantuml', obj_)
19874 self.content_.append(obj_)
19875 if hasattr(self, 'add_plantuml'):
19876 self.add_plantumladd_plantuml(obj_.value)
19877 elif hasattr(self, 'set_plantuml'):
19878 self.set_plantumlset_plantuml(obj_.value)
19879 elif nodeName_ == 'anchor':
19880 obj_ = docAnchorType.factory(parent_object_=self)
19881 obj_.build(child_, gds_collector_=gds_collector_)
19882 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19883 MixedContainer.TypeNone, 'anchor', obj_)
19884 self.content_.append(obj_)
19885 if hasattr(self, 'add_anchor'):
19886 self.add_anchoradd_anchor(obj_.value)
19887 elif hasattr(self, 'set_anchor'):
19888 self.set_anchorset_anchor(obj_.value)
19889 elif nodeName_ == 'formula':
19890 obj_ = docFormulaType.factory(parent_object_=self)
19891 obj_.build(child_, gds_collector_=gds_collector_)
19892 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19893 MixedContainer.TypeNone, 'formula', obj_)
19894 self.content_.append(obj_)
19895 if hasattr(self, 'add_formula'):
19896 self.add_formulaadd_formula(obj_.value)
19897 elif hasattr(self, 'set_formula'):
19898 self.set_formulaset_formula(obj_.value)
19899 elif nodeName_ == 'ref':
19900 obj_ = docRefTextType.factory(parent_object_=self)
19901 obj_.build(child_, gds_collector_=gds_collector_)
19902 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19903 MixedContainer.TypeNone, 'ref', obj_)
19904 self.content_.append(obj_)
19905 if hasattr(self, 'add_ref'):
19906 self.add_refadd_ref(obj_.value)
19907 elif hasattr(self, 'set_ref'):
19908 self.set_refset_ref(obj_.value)
19909 elif nodeName_ == 'emoji':
19910 obj_ = docEmojiType.factory(parent_object_=self)
19911 obj_.build(child_, gds_collector_=gds_collector_)
19912 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19913 MixedContainer.TypeNone, 'emoji', obj_)
19914 self.content_.append(obj_)
19915 if hasattr(self, 'add_emoji'):
19916 self.add_emojiadd_emoji(obj_.value)
19917 elif hasattr(self, 'set_emoji'):
19918 self.set_emojiset_emoji(obj_.value)
19919 elif nodeName_ == 'linebreak':
19920 obj_ = docEmptyType.factory(parent_object_=self)
19921 obj_.build(child_, gds_collector_=gds_collector_)
19922 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
19923 MixedContainer.TypeNone, 'linebreak', obj_)
19924 self.content_.append(obj_)
19925 if hasattr(self, 'add_linebreak'):
19926 self.add_linebreakadd_linebreak(obj_.value)
19927 elif hasattr(self, 'set_linebreak'):
19928 self.set_linebreakset_linebreak(obj_.value)
19929 if not fromsubclass_ and child_.tail is not None:
19930 obj_ = self.mixedclass_(MixedContainer.CategoryText,
19931 MixedContainer.TypeNone, '', child_.tail)
19932 self.content_.append(obj_)
19933# end class docHeadingType
19934
19935
19937 __hash__ = GeneratedsSuper.__hash__
19938 subclass = None
19939 superclass = None
19940 def __init__(self, type_=None, name=None, width=None, height=None, alt=None, inline=None, caption=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
19941 self.gds_collector_ = gds_collector_
19942 self.gds_elementtree_node_ = None
19943 self.original_tagname_ = None
19944 self.parent_object_ = kwargs_.get('parent_object_')
19945 self.ns_prefix_ = None
19946 self.type_ = _cast(None, type_)
19947 self.type__nsprefix_ = None
19948 self.name = _cast(None, name)
19949 self.name_nsprefix_ = None
19950 self.width = _cast(None, width)
19951 self.width_nsprefix_ = None
19952 self.height = _cast(None, height)
19953 self.height_nsprefix_ = None
19954 self.alt = _cast(None, alt)
19955 self.alt_nsprefix_ = None
19956 self.inline = _cast(None, inline)
19957 self.inline_nsprefix_ = None
19958 self.caption = _cast(None, caption)
19959 self.caption_nsprefix_ = None
19960 if ulink is None:
19961 self.ulink = []
19962 else:
19963 self.ulink = ulink
19964 self.ulink_nsprefix_ = None
19965 if bold is None:
19966 self.bold = []
19967 else:
19968 self.bold = bold
19969 self.bold_nsprefix_ = None
19970 if s is None:
19971 self.s = []
19972 else:
19973 self.s = s
19974 self.s_nsprefix_ = None
19975 if strike is None:
19976 self.strike = []
19977 else:
19978 self.strike = strike
19979 self.strike_nsprefix_ = None
19980 if underline is None:
19981 self.underline = []
19982 else:
19983 self.underline = underline
19984 self.underline_nsprefix_ = None
19985 if emphasis is None:
19986 self.emphasis = []
19987 else:
19988 self.emphasis = emphasis
19989 self.emphasis_nsprefix_ = None
19990 if computeroutput is None:
19991 self.computeroutput = []
19992 else:
19993 self.computeroutput = computeroutput
19994 self.computeroutput_nsprefix_ = None
19995 if subscript is None:
19996 self.subscript = []
19997 else:
19998 self.subscript = subscript
19999 self.subscript_nsprefix_ = None
20000 if superscript is None:
20001 self.superscript = []
20002 else:
20003 self.superscript = superscript
20004 self.superscript_nsprefix_ = None
20005 if center is None:
20006 self.center = []
20007 else:
20008 self.center = center
20009 self.center_nsprefix_ = None
20010 if small is None:
20011 self.small = []
20012 else:
20013 self.small = small
20014 self.small_nsprefix_ = None
20015 if cite is None:
20016 self.cite = []
20017 else:
20018 self.cite = cite
20019 self.cite_nsprefix_ = None
20020 if del_ is None:
20021 self.del_ = []
20022 else:
20023 self.del_ = del_
20024 self.del__nsprefix_ = None
20025 if ins is None:
20026 self.ins = []
20027 else:
20028 self.ins = ins
20029 self.ins_nsprefix_ = None
20030 if htmlonly is None:
20031 self.htmlonly = []
20032 else:
20033 self.htmlonly = htmlonly
20034 self.htmlonly_nsprefix_ = None
20035 if manonly is None:
20036 self.manonly = []
20037 else:
20038 self.manonly = manonly
20039 self.manonly_nsprefix_ = None
20040 if xmlonly is None:
20041 self.xmlonly = []
20042 else:
20043 self.xmlonly = xmlonly
20044 self.xmlonly_nsprefix_ = None
20045 if rtfonly is None:
20046 self.rtfonly = []
20047 else:
20048 self.rtfonly = rtfonly
20049 self.rtfonly_nsprefix_ = None
20050 if latexonly is None:
20051 self.latexonly = []
20052 else:
20053 self.latexonly = latexonly
20054 self.latexonly_nsprefix_ = None
20055 if docbookonly is None:
20056 self.docbookonly = []
20057 else:
20058 self.docbookonly = docbookonly
20059 self.docbookonly_nsprefix_ = None
20060 if image is None:
20061 self.image = []
20062 else:
20063 self.image = image
20064 self.image_nsprefix_ = None
20065 if dot is None:
20066 self.dot = []
20067 else:
20068 self.dot = dot
20069 self.dot_nsprefix_ = None
20070 if msc is None:
20071 self.msc = []
20072 else:
20073 self.msc = msc
20074 self.msc_nsprefix_ = None
20075 if plantuml is None:
20076 self.plantuml = []
20077 else:
20078 self.plantuml = plantuml
20079 self.plantuml_nsprefix_ = None
20080 if anchor is None:
20081 self.anchor = []
20082 else:
20083 self.anchor = anchor
20084 self.anchor_nsprefix_ = None
20085 if formula is None:
20086 self.formula = []
20087 else:
20088 self.formula = formula
20089 self.formula_nsprefix_ = None
20090 if ref is None:
20091 self.ref = []
20092 else:
20093 self.ref = ref
20094 self.ref_nsprefix_ = None
20095 if emoji is None:
20096 self.emoji = []
20097 else:
20098 self.emoji = emoji
20099 self.emoji_nsprefix_ = None
20100 if linebreak is None:
20101 self.linebreak = []
20102 else:
20103 self.linebreak = linebreak
20104 self.linebreak_nsprefix_ = None
20105 self.valueOf_ = valueOf_
20106 if mixedclass_ is None:
20107 self.mixedclass_ = MixedContainer
20108 else:
20109 self.mixedclass_ = mixedclass_
20110 if content_ is None:
20111 self.content_ = []
20112 else:
20113 self.content_ = content_
20114 self.valueOf_ = valueOf_
20115 def factory(*args_, **kwargs_):
20116 if CurrentSubclassModule_ is not None:
20117 subclass = getSubclassFromModule_(
20118 CurrentSubclassModule_, docImageType)
20119 if subclass is not None:
20120 return subclass(*args_, **kwargs_)
20121 if docImageType.subclass:
20122 return docImageType.subclass(*args_, **kwargs_)
20123 else:
20124 return docImageType(*args_, **kwargs_)
20125 factory = staticmethod(factory)
20127 return self.ns_prefix_
20128 def set_ns_prefix_(self, ns_prefix):
20129 self.ns_prefix_ = ns_prefix
20130 def get_ulink(self):
20131 return self.ulink
20132 def set_ulink(self, ulink):
20133 self.ulink = ulink
20134 def add_ulink(self, value):
20135 self.ulink.append(value)
20136 def insert_ulink_at(self, index, value):
20137 self.ulink.insert(index, value)
20138 def replace_ulink_at(self, index, value):
20139 self.ulink[index] = value
20140 def get_bold(self):
20141 return self.bold
20142 def set_bold(self, bold):
20143 self.bold = bold
20144 def add_bold(self, value):
20145 self.bold.append(value)
20146 def insert_bold_at(self, index, value):
20147 self.bold.insert(index, value)
20148 def replace_bold_at(self, index, value):
20149 self.bold[index] = value
20150 def get_s(self):
20151 return self.s
20152 def set_s(self, s):
20153 self.s = s
20154 def add_s(self, value):
20155 self.s.append(value)
20156 def insert_s_at(self, index, value):
20157 self.s.insert(index, value)
20158 def replace_s_at(self, index, value):
20159 self.s[index] = value
20160 def get_strike(self):
20161 return self.strike
20162 def set_strike(self, strike):
20163 self.strike = strike
20164 def add_strike(self, value):
20165 self.strike.append(value)
20166 def insert_strike_at(self, index, value):
20167 self.strike.insert(index, value)
20168 def replace_strike_at(self, index, value):
20169 self.strike[index] = value
20170 def get_underline(self):
20171 return self.underline
20172 def set_underline(self, underline):
20173 self.underline = underline
20174 def add_underline(self, value):
20175 self.underline.append(value)
20176 def insert_underline_at(self, index, value):
20177 self.underline.insert(index, value)
20178 def replace_underline_at(self, index, value):
20179 self.underline[index] = value
20180 def get_emphasis(self):
20181 return self.emphasis
20182 def set_emphasis(self, emphasis):
20183 self.emphasis = emphasis
20184 def add_emphasis(self, value):
20185 self.emphasis.append(value)
20186 def insert_emphasis_at(self, index, value):
20187 self.emphasis.insert(index, value)
20188 def replace_emphasis_at(self, index, value):
20189 self.emphasis[index] = value
20191 return self.computeroutput
20192 def set_computeroutput(self, computeroutput):
20193 self.computeroutput = computeroutput
20194 def add_computeroutput(self, value):
20195 self.computeroutput.append(value)
20196 def insert_computeroutput_at(self, index, value):
20197 self.computeroutput.insert(index, value)
20198 def replace_computeroutput_at(self, index, value):
20199 self.computeroutput[index] = value
20200 def get_subscript(self):
20201 return self.subscript
20202 def set_subscript(self, subscript):
20203 self.subscript = subscript
20204 def add_subscript(self, value):
20205 self.subscript.append(value)
20206 def insert_subscript_at(self, index, value):
20207 self.subscript.insert(index, value)
20208 def replace_subscript_at(self, index, value):
20209 self.subscript[index] = value
20211 return self.superscript
20212 def set_superscript(self, superscript):
20213 self.superscript = superscript
20214 def add_superscript(self, value):
20215 self.superscript.append(value)
20216 def insert_superscript_at(self, index, value):
20217 self.superscript.insert(index, value)
20218 def replace_superscript_at(self, index, value):
20219 self.superscript[index] = value
20220 def get_center(self):
20221 return self.center
20222 def set_center(self, center):
20223 self.center = center
20224 def add_center(self, value):
20225 self.center.append(value)
20226 def insert_center_at(self, index, value):
20227 self.center.insert(index, value)
20228 def replace_center_at(self, index, value):
20229 self.center[index] = value
20230 def get_small(self):
20231 return self.small
20232 def set_small(self, small):
20233 self.small = small
20234 def add_small(self, value):
20235 self.small.append(value)
20236 def insert_small_at(self, index, value):
20237 self.small.insert(index, value)
20238 def replace_small_at(self, index, value):
20239 self.small[index] = value
20240 def get_cite(self):
20241 return self.cite
20242 def set_cite(self, cite):
20243 self.cite = cite
20244 def add_cite(self, value):
20245 self.cite.append(value)
20246 def insert_cite_at(self, index, value):
20247 self.cite.insert(index, value)
20248 def replace_cite_at(self, index, value):
20249 self.cite[index] = value
20250 def get_del(self):
20251 return self.del_
20252 def set_del(self, del_):
20253 self.del_ = del_
20254 def add_del(self, value):
20255 self.del_.append(value)
20256 def insert_del_at(self, index, value):
20257 self.del_.insert(index, value)
20258 def replace_del_at(self, index, value):
20259 self.del_[index] = value
20260 def get_ins(self):
20261 return self.ins
20262 def set_ins(self, ins):
20263 self.ins = ins
20264 def add_ins(self, value):
20265 self.ins.append(value)
20266 def insert_ins_at(self, index, value):
20267 self.ins.insert(index, value)
20268 def replace_ins_at(self, index, value):
20269 self.ins[index] = value
20270 def get_htmlonly(self):
20271 return self.htmlonly
20272 def set_htmlonly(self, htmlonly):
20273 self.htmlonly = htmlonly
20274 def add_htmlonly(self, value):
20275 self.htmlonly.append(value)
20276 def insert_htmlonly_at(self, index, value):
20277 self.htmlonly.insert(index, value)
20278 def replace_htmlonly_at(self, index, value):
20279 self.htmlonly[index] = value
20280 def get_manonly(self):
20281 return self.manonly
20282 def set_manonly(self, manonly):
20283 self.manonly = manonly
20284 def add_manonly(self, value):
20285 self.manonly.append(value)
20286 def insert_manonly_at(self, index, value):
20287 self.manonly.insert(index, value)
20288 def replace_manonly_at(self, index, value):
20289 self.manonly[index] = value
20290 def get_xmlonly(self):
20291 return self.xmlonly
20292 def set_xmlonly(self, xmlonly):
20293 self.xmlonly = xmlonly
20294 def add_xmlonly(self, value):
20295 self.xmlonly.append(value)
20296 def insert_xmlonly_at(self, index, value):
20297 self.xmlonly.insert(index, value)
20298 def replace_xmlonly_at(self, index, value):
20299 self.xmlonly[index] = value
20300 def get_rtfonly(self):
20301 return self.rtfonly
20302 def set_rtfonly(self, rtfonly):
20303 self.rtfonly = rtfonly
20304 def add_rtfonly(self, value):
20305 self.rtfonly.append(value)
20306 def insert_rtfonly_at(self, index, value):
20307 self.rtfonly.insert(index, value)
20308 def replace_rtfonly_at(self, index, value):
20309 self.rtfonly[index] = value
20310 def get_latexonly(self):
20311 return self.latexonly
20312 def set_latexonly(self, latexonly):
20313 self.latexonly = latexonly
20314 def add_latexonly(self, value):
20315 self.latexonly.append(value)
20316 def insert_latexonly_at(self, index, value):
20317 self.latexonly.insert(index, value)
20318 def replace_latexonly_at(self, index, value):
20319 self.latexonly[index] = value
20321 return self.docbookonly
20322 def set_docbookonly(self, docbookonly):
20323 self.docbookonly = docbookonly
20324 def add_docbookonly(self, value):
20325 self.docbookonly.append(value)
20326 def insert_docbookonly_at(self, index, value):
20327 self.docbookonly.insert(index, value)
20328 def replace_docbookonly_at(self, index, value):
20329 self.docbookonly[index] = value
20330 def get_image(self):
20331 return self.image
20332 def set_image(self, image):
20333 self.image = image
20334 def add_image(self, value):
20335 self.image.append(value)
20336 def insert_image_at(self, index, value):
20337 self.image.insert(index, value)
20338 def replace_image_at(self, index, value):
20339 self.image[index] = value
20340 def get_dot(self):
20341 return self.dot
20342 def set_dot(self, dot):
20343 self.dot = dot
20344 def add_dot(self, value):
20345 self.dot.append(value)
20346 def insert_dot_at(self, index, value):
20347 self.dot.insert(index, value)
20348 def replace_dot_at(self, index, value):
20349 self.dot[index] = value
20350 def get_msc(self):
20351 return self.msc
20352 def set_msc(self, msc):
20353 self.msc = msc
20354 def add_msc(self, value):
20355 self.msc.append(value)
20356 def insert_msc_at(self, index, value):
20357 self.msc.insert(index, value)
20358 def replace_msc_at(self, index, value):
20359 self.msc[index] = value
20360 def get_plantuml(self):
20361 return self.plantuml
20362 def set_plantuml(self, plantuml):
20363 self.plantuml = plantuml
20364 def add_plantuml(self, value):
20365 self.plantuml.append(value)
20366 def insert_plantuml_at(self, index, value):
20367 self.plantuml.insert(index, value)
20368 def replace_plantuml_at(self, index, value):
20369 self.plantuml[index] = value
20370 def get_anchor(self):
20371 return self.anchor
20372 def set_anchor(self, anchor):
20373 self.anchor = anchor
20374 def add_anchor(self, value):
20375 self.anchor.append(value)
20376 def insert_anchor_at(self, index, value):
20377 self.anchor.insert(index, value)
20378 def replace_anchor_at(self, index, value):
20379 self.anchor[index] = value
20380 def get_formula(self):
20381 return self.formula
20382 def set_formula(self, formula):
20383 self.formula = formula
20384 def add_formula(self, value):
20385 self.formula.append(value)
20386 def insert_formula_at(self, index, value):
20387 self.formula.insert(index, value)
20388 def replace_formula_at(self, index, value):
20389 self.formula[index] = value
20390 def get_ref(self):
20391 return self.ref
20392 def set_ref(self, ref):
20393 self.ref = ref
20394 def add_ref(self, value):
20395 self.ref.append(value)
20396 def insert_ref_at(self, index, value):
20397 self.ref.insert(index, value)
20398 def replace_ref_at(self, index, value):
20399 self.ref[index] = value
20400 def get_emoji(self):
20401 return self.emoji
20402 def set_emoji(self, emoji):
20403 self.emoji = emoji
20404 def add_emoji(self, value):
20405 self.emoji.append(value)
20406 def insert_emoji_at(self, index, value):
20407 self.emoji.insert(index, value)
20408 def replace_emoji_at(self, index, value):
20409 self.emoji[index] = value
20410 def get_linebreak(self):
20411 return self.linebreak
20412 def set_linebreak(self, linebreak):
20413 self.linebreak = linebreak
20414 def add_linebreak(self, value):
20415 self.linebreak.append(value)
20416 def insert_linebreak_at(self, index, value):
20417 self.linebreak.insert(index, value)
20418 def replace_linebreak_at(self, index, value):
20419 self.linebreak[index] = value
20420 def get_type(self):
20421 return self.type_
20422 def set_type(self, type_):
20423 self.type_ = type_
20424 def get_name(self):
20425 return self.name
20426 def set_name(self, name):
20427 self.name = name
20428 def get_width(self):
20429 return self.width
20430 def set_width(self, width):
20431 self.width = width
20432 def get_height(self):
20433 return self.height
20434 def set_height(self, height):
20435 self.height = height
20436 def get_alt(self):
20437 return self.alt
20438 def set_alt(self, alt):
20439 self.alt = alt
20440 def get_inline(self):
20441 return self.inline
20442 def set_inline(self, inline):
20443 self.inline = inline
20444 def get_caption(self):
20445 return self.caption
20446 def set_caption(self, caption):
20447 self.caption = caption
20448 def get_valueOf_(self): return self.valueOf_
20449 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
20450 def validate_DoxImageKind(self, value):
20451 # Validate type DoxImageKind, a restriction on xsd:string.
20452 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
20453 if not isinstance(value, str):
20455 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
20456 return False
20457 value = value
20458 enumerations = ['html', 'latex', 'docbook', 'rtf', 'xml']
20459 if value not in enumerations:
20461 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxImageKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
20462 result = False
20463 def validate_DoxBool(self, value):
20464 # Validate type DoxBool, a restriction on xsd:string.
20465 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
20466 if not isinstance(value, str):
20468 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
20469 return False
20470 value = value
20471 enumerations = ['yes', 'no']
20472 if value not in enumerations:
20474 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxBool' % {"value" : encode_str_2_3(value), "lineno": lineno} )
20475 result = False
20476 def hasContent_(self):
20477 if (
20478 self.ulink or
20479 self.bold or
20480 self.s or
20481 self.strike or
20482 self.underline or
20483 self.emphasis or
20484 self.computeroutput or
20485 self.subscript or
20486 self.superscript or
20487 self.center or
20488 self.small or
20489 self.cite or
20490 self.del_ or
20491 self.ins or
20492 self.htmlonly or
20493 self.manonly or
20494 self.xmlonly or
20495 self.rtfonly or
20496 self.latexonly or
20497 self.docbookonly or
20498 self.image or
20499 self.dot or
20500 self.msc or
20501 self.plantuml or
20502 self.anchor or
20503 self.formula or
20504 self.ref or
20505 self.emoji or
20506 self.linebreak or
20507 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
20508 self.content_
20509 ):
20510 return True
20511 else:
20512 return False
20513 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageType', pretty_print=True):
20514 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docImageType')
20515 if imported_ns_def_ is not None:
20516 namespacedef_ = imported_ns_def_
20517 if pretty_print:
20518 eol_ = '\n'
20519 else:
20520 eol_ = ''
20521 if self.original_tagname_ is not None and name_ == 'docImageType':
20522 name_ = self.original_tagname_
20523 if UseCapturedNS_ and self.ns_prefix_:
20524 namespaceprefix_ = self.ns_prefix_ + ':'
20525 showIndent(outfile, level, pretty_print)
20526 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
20527 already_processed = set()
20528 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docImageType')
20529 if self.hasContent_hasContent_():
20530 outfile.write('>%s' % (eol_, ))
20531 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docImageType', pretty_print=pretty_print)
20532 showIndent(outfile, level, pretty_print)
20533 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
20534 else:
20535 outfile.write('/>%s' % (eol_, ))
20536 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docImageType'):
20537 if self.type_ is not None and 'type_' not in already_processed:
20538 already_processed.add('type_')
20539 outfile.write(' type=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.type_), input_name='type')), ))
20540 if self.name is not None and 'name' not in already_processed:
20541 already_processed.add('name')
20542 outfile.write(' name=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.name), input_name='name')), ))
20543 if self.width is not None and 'width' not in already_processed:
20544 already_processed.add('width')
20545 outfile.write(' width=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.width), input_name='width')), ))
20546 if self.height is not None and 'height' not in already_processed:
20547 already_processed.add('height')
20548 outfile.write(' height=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.height), input_name='height')), ))
20549 if self.alt is not None and 'alt' not in already_processed:
20550 already_processed.add('alt')
20551 outfile.write(' alt=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.alt), input_name='alt')), ))
20552 if self.inline is not None and 'inline' not in already_processed:
20553 already_processed.add('inline')
20554 outfile.write(' inline=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.inline), input_name='inline')), ))
20555 if self.caption is not None and 'caption' not in already_processed:
20556 already_processed.add('caption')
20557 outfile.write(' caption=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.caption), input_name='caption')), ))
20558 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageType', fromsubclass_=False, pretty_print=True):
20559 if not fromsubclass_:
20560 for item_ in self.content_:
20561 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
20562 if pretty_print:
20563 eol_ = '\n'
20564 else:
20565 eol_ = ''
20566 for ulink_ in self.ulink:
20567 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
20568 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
20569 for bold_ in self.bold:
20570 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
20571 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
20572 for s_ in self.s:
20573 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
20574 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
20575 for strike_ in self.strike:
20576 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
20577 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
20578 for underline_ in self.underline:
20579 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
20580 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
20581 for emphasis_ in self.emphasis:
20582 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
20583 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
20584 for computeroutput_ in self.computeroutput:
20585 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
20586 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
20587 for subscript_ in self.subscript:
20588 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
20589 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
20590 for superscript_ in self.superscript:
20591 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
20592 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
20593 for center_ in self.center:
20594 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
20595 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
20596 for small_ in self.small:
20597 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
20598 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
20599 for cite_ in self.cite:
20600 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
20601 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
20602 for del_ in self.del_:
20603 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
20604 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
20605 for ins_ in self.ins:
20606 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
20607 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
20608 for htmlonly_ in self.htmlonly:
20609 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
20610 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
20611 for manonly_ in self.manonly:
20612 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
20613 showIndent(outfile, level, pretty_print)
20614 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
20615 for xmlonly_ in self.xmlonly:
20616 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
20617 showIndent(outfile, level, pretty_print)
20618 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
20619 for rtfonly_ in self.rtfonly:
20620 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
20621 showIndent(outfile, level, pretty_print)
20622 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
20623 for latexonly_ in self.latexonly:
20624 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
20625 showIndent(outfile, level, pretty_print)
20626 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
20627 for docbookonly_ in self.docbookonly:
20628 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
20629 showIndent(outfile, level, pretty_print)
20630 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
20631 for image_ in self.image:
20632 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
20633 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
20634 for dot_ in self.dot:
20635 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
20636 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
20637 for msc_ in self.msc:
20638 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
20639 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
20640 for plantuml_ in self.plantuml:
20641 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
20642 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
20643 for anchor_ in self.anchor:
20644 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
20645 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
20646 for formula_ in self.formula:
20647 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
20648 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
20649 for ref_ in self.ref:
20650 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
20651 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
20652 for emoji_ in self.emoji:
20653 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
20654 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
20655 for linebreak_ in self.linebreak:
20656 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
20657 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
20658 def build(self, node, gds_collector_=None):
20659 self.gds_collector_ = gds_collector_
20660 if SaveElementTreeNode:
20661 self.gds_elementtree_node_ = node
20662 already_processed = set()
20663 self.ns_prefix_ = node.prefix
20664 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
20665 self.valueOf_ = get_all_text_(node)
20666 if node.text is not None:
20667 obj_ = self.mixedclass_(MixedContainer.CategoryText,
20668 MixedContainer.TypeNone, '', node.text)
20669 self.content_.append(obj_)
20670 for child in node:
20671 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
20672 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
20673 return self
20674 def buildAttributes(self, node, attrs, already_processed):
20675 value = find_attr_value_('type', node)
20676 if value is not None and 'type' not in already_processed:
20677 already_processed.add('type')
20678 self.type_ = value
20679 self.validate_DoxImageKindvalidate_DoxImageKind(self.type_) # validate type DoxImageKind
20680 value = find_attr_value_('name', node)
20681 if value is not None and 'name' not in already_processed:
20682 already_processed.add('name')
20683 self.name = value
20684 value = find_attr_value_('width', node)
20685 if value is not None and 'width' not in already_processed:
20686 already_processed.add('width')
20687 self.width = value
20688 value = find_attr_value_('height', node)
20689 if value is not None and 'height' not in already_processed:
20690 already_processed.add('height')
20691 self.height = value
20692 value = find_attr_value_('alt', node)
20693 if value is not None and 'alt' not in already_processed:
20694 already_processed.add('alt')
20695 self.alt = value
20696 value = find_attr_value_('inline', node)
20697 if value is not None and 'inline' not in already_processed:
20698 already_processed.add('inline')
20699 self.inline = value
20700 self.validate_DoxBoolvalidate_DoxBool(self.inline) # validate type DoxBool
20701 value = find_attr_value_('caption', node)
20702 if value is not None and 'caption' not in already_processed:
20703 already_processed.add('caption')
20704 self.caption = value
20705 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
20706 if nodeName_ == 'ulink':
20707 obj_ = docURLLink.factory(parent_object_=self)
20708 obj_.build(child_, gds_collector_=gds_collector_)
20709 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20710 MixedContainer.TypeNone, 'ulink', obj_)
20711 self.content_.append(obj_)
20712 if hasattr(self, 'add_ulink'):
20713 self.add_ulinkadd_ulink(obj_.value)
20714 elif hasattr(self, 'set_ulink'):
20715 self.set_ulinkset_ulink(obj_.value)
20716 elif nodeName_ == 'bold':
20717 obj_ = docMarkupType.factory(parent_object_=self)
20718 obj_.build(child_, gds_collector_=gds_collector_)
20719 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20720 MixedContainer.TypeNone, 'bold', obj_)
20721 self.content_.append(obj_)
20722 if hasattr(self, 'add_bold'):
20723 self.add_boldadd_bold(obj_.value)
20724 elif hasattr(self, 'set_bold'):
20725 self.set_boldset_bold(obj_.value)
20726 elif nodeName_ == 's':
20727 obj_ = docMarkupType.factory(parent_object_=self)
20728 obj_.build(child_, gds_collector_=gds_collector_)
20729 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20730 MixedContainer.TypeNone, 's', obj_)
20731 self.content_.append(obj_)
20732 if hasattr(self, 'add_s'):
20733 self.add_sadd_s(obj_.value)
20734 elif hasattr(self, 'set_s'):
20735 self.set_sset_s(obj_.value)
20736 elif nodeName_ == 'strike':
20737 obj_ = docMarkupType.factory(parent_object_=self)
20738 obj_.build(child_, gds_collector_=gds_collector_)
20739 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20740 MixedContainer.TypeNone, 'strike', obj_)
20741 self.content_.append(obj_)
20742 if hasattr(self, 'add_strike'):
20743 self.add_strikeadd_strike(obj_.value)
20744 elif hasattr(self, 'set_strike'):
20745 self.set_strikeset_strike(obj_.value)
20746 elif nodeName_ == 'underline':
20747 obj_ = docMarkupType.factory(parent_object_=self)
20748 obj_.build(child_, gds_collector_=gds_collector_)
20749 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20750 MixedContainer.TypeNone, 'underline', obj_)
20751 self.content_.append(obj_)
20752 if hasattr(self, 'add_underline'):
20753 self.add_underlineadd_underline(obj_.value)
20754 elif hasattr(self, 'set_underline'):
20755 self.set_underlineset_underline(obj_.value)
20756 elif nodeName_ == 'emphasis':
20757 obj_ = docMarkupType.factory(parent_object_=self)
20758 obj_.build(child_, gds_collector_=gds_collector_)
20759 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20760 MixedContainer.TypeNone, 'emphasis', obj_)
20761 self.content_.append(obj_)
20762 if hasattr(self, 'add_emphasis'):
20763 self.add_emphasisadd_emphasis(obj_.value)
20764 elif hasattr(self, 'set_emphasis'):
20765 self.set_emphasisset_emphasis(obj_.value)
20766 elif nodeName_ == 'computeroutput':
20767 obj_ = docMarkupType.factory(parent_object_=self)
20768 obj_.build(child_, gds_collector_=gds_collector_)
20769 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20770 MixedContainer.TypeNone, 'computeroutput', obj_)
20771 self.content_.append(obj_)
20772 if hasattr(self, 'add_computeroutput'):
20774 elif hasattr(self, 'set_computeroutput'):
20776 elif nodeName_ == 'subscript':
20777 obj_ = docMarkupType.factory(parent_object_=self)
20778 obj_.build(child_, gds_collector_=gds_collector_)
20779 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20780 MixedContainer.TypeNone, 'subscript', obj_)
20781 self.content_.append(obj_)
20782 if hasattr(self, 'add_subscript'):
20783 self.add_subscriptadd_subscript(obj_.value)
20784 elif hasattr(self, 'set_subscript'):
20785 self.set_subscriptset_subscript(obj_.value)
20786 elif nodeName_ == 'superscript':
20787 obj_ = docMarkupType.factory(parent_object_=self)
20788 obj_.build(child_, gds_collector_=gds_collector_)
20789 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20790 MixedContainer.TypeNone, 'superscript', obj_)
20791 self.content_.append(obj_)
20792 if hasattr(self, 'add_superscript'):
20793 self.add_superscriptadd_superscript(obj_.value)
20794 elif hasattr(self, 'set_superscript'):
20795 self.set_superscriptset_superscript(obj_.value)
20796 elif nodeName_ == 'center':
20797 obj_ = docMarkupType.factory(parent_object_=self)
20798 obj_.build(child_, gds_collector_=gds_collector_)
20799 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20800 MixedContainer.TypeNone, 'center', obj_)
20801 self.content_.append(obj_)
20802 if hasattr(self, 'add_center'):
20803 self.add_centeradd_center(obj_.value)
20804 elif hasattr(self, 'set_center'):
20805 self.set_centerset_center(obj_.value)
20806 elif nodeName_ == 'small':
20807 obj_ = docMarkupType.factory(parent_object_=self)
20808 obj_.build(child_, gds_collector_=gds_collector_)
20809 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20810 MixedContainer.TypeNone, 'small', obj_)
20811 self.content_.append(obj_)
20812 if hasattr(self, 'add_small'):
20813 self.add_smalladd_small(obj_.value)
20814 elif hasattr(self, 'set_small'):
20815 self.set_smallset_small(obj_.value)
20816 elif nodeName_ == 'cite':
20817 obj_ = docMarkupType.factory(parent_object_=self)
20818 obj_.build(child_, gds_collector_=gds_collector_)
20819 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20820 MixedContainer.TypeNone, 'cite', obj_)
20821 self.content_.append(obj_)
20822 if hasattr(self, 'add_cite'):
20823 self.add_citeadd_cite(obj_.value)
20824 elif hasattr(self, 'set_cite'):
20825 self.set_citeset_cite(obj_.value)
20826 elif nodeName_ == 'del':
20827 obj_ = docMarkupType.factory(parent_object_=self)
20828 obj_.build(child_, gds_collector_=gds_collector_)
20829 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20830 MixedContainer.TypeNone, 'del', obj_)
20831 self.content_.append(obj_)
20832 if hasattr(self, 'add_del'):
20833 self.add_deladd_del(obj_.value)
20834 elif hasattr(self, 'set_del'):
20835 self.set_delset_del(obj_.value)
20836 elif nodeName_ == 'ins':
20837 obj_ = docMarkupType.factory(parent_object_=self)
20838 obj_.build(child_, gds_collector_=gds_collector_)
20839 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20840 MixedContainer.TypeNone, 'ins', obj_)
20841 self.content_.append(obj_)
20842 if hasattr(self, 'add_ins'):
20843 self.add_insadd_ins(obj_.value)
20844 elif hasattr(self, 'set_ins'):
20845 self.set_insset_ins(obj_.value)
20846 elif nodeName_ == 'htmlonly':
20847 obj_ = docHtmlOnlyType.factory(parent_object_=self)
20848 obj_.build(child_, gds_collector_=gds_collector_)
20849 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20850 MixedContainer.TypeNone, 'htmlonly', obj_)
20851 self.content_.append(obj_)
20852 if hasattr(self, 'add_htmlonly'):
20853 self.add_htmlonlyadd_htmlonly(obj_.value)
20854 elif hasattr(self, 'set_htmlonly'):
20855 self.set_htmlonlyset_htmlonly(obj_.value)
20856 elif nodeName_ == 'manonly' and child_.text is not None:
20857 valuestr_ = child_.text
20858 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
20859 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
20860 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
20861 MixedContainer.TypeString, 'manonly', valuestr_)
20862 self.content_.append(obj_)
20863 self.manonly_nsprefix_ = child_.prefix
20864 elif nodeName_ == 'xmlonly' and child_.text is not None:
20865 valuestr_ = child_.text
20866 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
20867 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
20868 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
20869 MixedContainer.TypeString, 'xmlonly', valuestr_)
20870 self.content_.append(obj_)
20871 self.xmlonly_nsprefix_ = child_.prefix
20872 elif nodeName_ == 'rtfonly' and child_.text is not None:
20873 valuestr_ = child_.text
20874 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
20875 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
20876 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
20877 MixedContainer.TypeString, 'rtfonly', valuestr_)
20878 self.content_.append(obj_)
20879 self.rtfonly_nsprefix_ = child_.prefix
20880 elif nodeName_ == 'latexonly' and child_.text is not None:
20881 valuestr_ = child_.text
20882 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
20883 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
20884 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
20885 MixedContainer.TypeString, 'latexonly', valuestr_)
20886 self.content_.append(obj_)
20887 self.latexonly_nsprefix_ = child_.prefix
20888 elif nodeName_ == 'docbookonly' and child_.text is not None:
20889 valuestr_ = child_.text
20890 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
20891 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
20892 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
20893 MixedContainer.TypeString, 'docbookonly', valuestr_)
20894 self.content_.append(obj_)
20895 self.docbookonly_nsprefix_ = child_.prefix
20896 elif nodeName_ == 'image':
20897 obj_ = docImageType.factory(parent_object_=self)
20898 obj_.build(child_, gds_collector_=gds_collector_)
20899 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20900 MixedContainer.TypeNone, 'image', obj_)
20901 self.content_.append(obj_)
20902 if hasattr(self, 'add_image'):
20903 self.add_imageadd_image(obj_.value)
20904 elif hasattr(self, 'set_image'):
20905 self.set_imageset_image(obj_.value)
20906 elif nodeName_ == 'dot':
20907 obj_ = docDotMscType.factory(parent_object_=self)
20908 obj_.build(child_, gds_collector_=gds_collector_)
20909 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20910 MixedContainer.TypeNone, 'dot', obj_)
20911 self.content_.append(obj_)
20912 if hasattr(self, 'add_dot'):
20913 self.add_dotadd_dot(obj_.value)
20914 elif hasattr(self, 'set_dot'):
20915 self.set_dotset_dot(obj_.value)
20916 elif nodeName_ == 'msc':
20917 obj_ = docDotMscType.factory(parent_object_=self)
20918 obj_.build(child_, gds_collector_=gds_collector_)
20919 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20920 MixedContainer.TypeNone, 'msc', obj_)
20921 self.content_.append(obj_)
20922 if hasattr(self, 'add_msc'):
20923 self.add_mscadd_msc(obj_.value)
20924 elif hasattr(self, 'set_msc'):
20925 self.set_mscset_msc(obj_.value)
20926 elif nodeName_ == 'plantuml':
20927 obj_ = docPlantumlType.factory(parent_object_=self)
20928 obj_.build(child_, gds_collector_=gds_collector_)
20929 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20930 MixedContainer.TypeNone, 'plantuml', obj_)
20931 self.content_.append(obj_)
20932 if hasattr(self, 'add_plantuml'):
20933 self.add_plantumladd_plantuml(obj_.value)
20934 elif hasattr(self, 'set_plantuml'):
20935 self.set_plantumlset_plantuml(obj_.value)
20936 elif nodeName_ == 'anchor':
20937 obj_ = docAnchorType.factory(parent_object_=self)
20938 obj_.build(child_, gds_collector_=gds_collector_)
20939 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20940 MixedContainer.TypeNone, 'anchor', obj_)
20941 self.content_.append(obj_)
20942 if hasattr(self, 'add_anchor'):
20943 self.add_anchoradd_anchor(obj_.value)
20944 elif hasattr(self, 'set_anchor'):
20945 self.set_anchorset_anchor(obj_.value)
20946 elif nodeName_ == 'formula':
20947 obj_ = docFormulaType.factory(parent_object_=self)
20948 obj_.build(child_, gds_collector_=gds_collector_)
20949 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20950 MixedContainer.TypeNone, 'formula', obj_)
20951 self.content_.append(obj_)
20952 if hasattr(self, 'add_formula'):
20953 self.add_formulaadd_formula(obj_.value)
20954 elif hasattr(self, 'set_formula'):
20955 self.set_formulaset_formula(obj_.value)
20956 elif nodeName_ == 'ref':
20957 obj_ = docRefTextType.factory(parent_object_=self)
20958 obj_.build(child_, gds_collector_=gds_collector_)
20959 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20960 MixedContainer.TypeNone, 'ref', obj_)
20961 self.content_.append(obj_)
20962 if hasattr(self, 'add_ref'):
20963 self.add_refadd_ref(obj_.value)
20964 elif hasattr(self, 'set_ref'):
20965 self.set_refset_ref(obj_.value)
20966 elif nodeName_ == 'emoji':
20967 obj_ = docEmojiType.factory(parent_object_=self)
20968 obj_.build(child_, gds_collector_=gds_collector_)
20969 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20970 MixedContainer.TypeNone, 'emoji', obj_)
20971 self.content_.append(obj_)
20972 if hasattr(self, 'add_emoji'):
20973 self.add_emojiadd_emoji(obj_.value)
20974 elif hasattr(self, 'set_emoji'):
20975 self.set_emojiset_emoji(obj_.value)
20976 elif nodeName_ == 'linebreak':
20977 obj_ = docEmptyType.factory(parent_object_=self)
20978 obj_.build(child_, gds_collector_=gds_collector_)
20979 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
20980 MixedContainer.TypeNone, 'linebreak', obj_)
20981 self.content_.append(obj_)
20982 if hasattr(self, 'add_linebreak'):
20983 self.add_linebreakadd_linebreak(obj_.value)
20984 elif hasattr(self, 'set_linebreak'):
20985 self.set_linebreakset_linebreak(obj_.value)
20986 if not fromsubclass_ and child_.tail is not None:
20987 obj_ = self.mixedclass_(MixedContainer.CategoryText,
20988 MixedContainer.TypeNone, '', child_.tail)
20989 self.content_.append(obj_)
20990# end class docImageType
20991
20992
20994 __hash__ = GeneratedsSuper.__hash__
20995 subclass = None
20996 superclass = None
20997 def __init__(self, name=None, width=None, height=None, caption=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
20998 self.gds_collector_ = gds_collector_
20999 self.gds_elementtree_node_ = None
21000 self.original_tagname_ = None
21001 self.parent_object_ = kwargs_.get('parent_object_')
21002 self.ns_prefix_ = None
21003 self.name = _cast(None, name)
21004 self.name_nsprefix_ = None
21005 self.width = _cast(None, width)
21006 self.width_nsprefix_ = None
21007 self.height = _cast(None, height)
21008 self.height_nsprefix_ = None
21009 self.caption = _cast(None, caption)
21010 self.caption_nsprefix_ = None
21011 if ulink is None:
21012 self.ulink = []
21013 else:
21014 self.ulink = ulink
21015 self.ulink_nsprefix_ = None
21016 if bold is None:
21017 self.bold = []
21018 else:
21019 self.bold = bold
21020 self.bold_nsprefix_ = None
21021 if s is None:
21022 self.s = []
21023 else:
21024 self.s = s
21025 self.s_nsprefix_ = None
21026 if strike is None:
21027 self.strike = []
21028 else:
21029 self.strike = strike
21030 self.strike_nsprefix_ = None
21031 if underline is None:
21032 self.underline = []
21033 else:
21034 self.underline = underline
21035 self.underline_nsprefix_ = None
21036 if emphasis is None:
21037 self.emphasis = []
21038 else:
21039 self.emphasis = emphasis
21040 self.emphasis_nsprefix_ = None
21041 if computeroutput is None:
21042 self.computeroutput = []
21043 else:
21044 self.computeroutput = computeroutput
21045 self.computeroutput_nsprefix_ = None
21046 if subscript is None:
21047 self.subscript = []
21048 else:
21049 self.subscript = subscript
21050 self.subscript_nsprefix_ = None
21051 if superscript is None:
21052 self.superscript = []
21053 else:
21054 self.superscript = superscript
21055 self.superscript_nsprefix_ = None
21056 if center is None:
21057 self.center = []
21058 else:
21059 self.center = center
21060 self.center_nsprefix_ = None
21061 if small is None:
21062 self.small = []
21063 else:
21064 self.small = small
21065 self.small_nsprefix_ = None
21066 if cite is None:
21067 self.cite = []
21068 else:
21069 self.cite = cite
21070 self.cite_nsprefix_ = None
21071 if del_ is None:
21072 self.del_ = []
21073 else:
21074 self.del_ = del_
21075 self.del__nsprefix_ = None
21076 if ins is None:
21077 self.ins = []
21078 else:
21079 self.ins = ins
21080 self.ins_nsprefix_ = None
21081 if htmlonly is None:
21082 self.htmlonly = []
21083 else:
21084 self.htmlonly = htmlonly
21085 self.htmlonly_nsprefix_ = None
21086 if manonly is None:
21087 self.manonly = []
21088 else:
21089 self.manonly = manonly
21090 self.manonly_nsprefix_ = None
21091 if xmlonly is None:
21092 self.xmlonly = []
21093 else:
21094 self.xmlonly = xmlonly
21095 self.xmlonly_nsprefix_ = None
21096 if rtfonly is None:
21097 self.rtfonly = []
21098 else:
21099 self.rtfonly = rtfonly
21100 self.rtfonly_nsprefix_ = None
21101 if latexonly is None:
21102 self.latexonly = []
21103 else:
21104 self.latexonly = latexonly
21105 self.latexonly_nsprefix_ = None
21106 if docbookonly is None:
21107 self.docbookonly = []
21108 else:
21109 self.docbookonly = docbookonly
21110 self.docbookonly_nsprefix_ = None
21111 if image is None:
21112 self.image = []
21113 else:
21114 self.image = image
21115 self.image_nsprefix_ = None
21116 if dot is None:
21117 self.dot = []
21118 else:
21119 self.dot = dot
21120 self.dot_nsprefix_ = None
21121 if msc is None:
21122 self.msc = []
21123 else:
21124 self.msc = msc
21125 self.msc_nsprefix_ = None
21126 if plantuml is None:
21127 self.plantuml = []
21128 else:
21129 self.plantuml = plantuml
21130 self.plantuml_nsprefix_ = None
21131 if anchor is None:
21132 self.anchor = []
21133 else:
21134 self.anchor = anchor
21135 self.anchor_nsprefix_ = None
21136 if formula is None:
21137 self.formula = []
21138 else:
21139 self.formula = formula
21140 self.formula_nsprefix_ = None
21141 if ref is None:
21142 self.ref = []
21143 else:
21144 self.ref = ref
21145 self.ref_nsprefix_ = None
21146 if emoji is None:
21147 self.emoji = []
21148 else:
21149 self.emoji = emoji
21150 self.emoji_nsprefix_ = None
21151 if linebreak is None:
21152 self.linebreak = []
21153 else:
21154 self.linebreak = linebreak
21155 self.linebreak_nsprefix_ = None
21156 self.valueOf_ = valueOf_
21157 if mixedclass_ is None:
21158 self.mixedclass_ = MixedContainer
21159 else:
21160 self.mixedclass_ = mixedclass_
21161 if content_ is None:
21162 self.content_ = []
21163 else:
21164 self.content_ = content_
21165 self.valueOf_ = valueOf_
21166 def factory(*args_, **kwargs_):
21167 if CurrentSubclassModule_ is not None:
21168 subclass = getSubclassFromModule_(
21169 CurrentSubclassModule_, docDotMscType)
21170 if subclass is not None:
21171 return subclass(*args_, **kwargs_)
21172 if docDotMscType.subclass:
21173 return docDotMscType.subclass(*args_, **kwargs_)
21174 else:
21175 return docDotMscType(*args_, **kwargs_)
21176 factory = staticmethod(factory)
21178 return self.ns_prefix_
21179 def set_ns_prefix_(self, ns_prefix):
21180 self.ns_prefix_ = ns_prefix
21181 def get_ulink(self):
21182 return self.ulink
21183 def set_ulink(self, ulink):
21184 self.ulink = ulink
21185 def add_ulink(self, value):
21186 self.ulink.append(value)
21187 def insert_ulink_at(self, index, value):
21188 self.ulink.insert(index, value)
21189 def replace_ulink_at(self, index, value):
21190 self.ulink[index] = value
21191 def get_bold(self):
21192 return self.bold
21193 def set_bold(self, bold):
21194 self.bold = bold
21195 def add_bold(self, value):
21196 self.bold.append(value)
21197 def insert_bold_at(self, index, value):
21198 self.bold.insert(index, value)
21199 def replace_bold_at(self, index, value):
21200 self.bold[index] = value
21201 def get_s(self):
21202 return self.s
21203 def set_s(self, s):
21204 self.s = s
21205 def add_s(self, value):
21206 self.s.append(value)
21207 def insert_s_at(self, index, value):
21208 self.s.insert(index, value)
21209 def replace_s_at(self, index, value):
21210 self.s[index] = value
21211 def get_strike(self):
21212 return self.strike
21213 def set_strike(self, strike):
21214 self.strike = strike
21215 def add_strike(self, value):
21216 self.strike.append(value)
21217 def insert_strike_at(self, index, value):
21218 self.strike.insert(index, value)
21219 def replace_strike_at(self, index, value):
21220 self.strike[index] = value
21221 def get_underline(self):
21222 return self.underline
21223 def set_underline(self, underline):
21224 self.underline = underline
21225 def add_underline(self, value):
21226 self.underline.append(value)
21227 def insert_underline_at(self, index, value):
21228 self.underline.insert(index, value)
21229 def replace_underline_at(self, index, value):
21230 self.underline[index] = value
21231 def get_emphasis(self):
21232 return self.emphasis
21233 def set_emphasis(self, emphasis):
21234 self.emphasis = emphasis
21235 def add_emphasis(self, value):
21236 self.emphasis.append(value)
21237 def insert_emphasis_at(self, index, value):
21238 self.emphasis.insert(index, value)
21239 def replace_emphasis_at(self, index, value):
21240 self.emphasis[index] = value
21242 return self.computeroutput
21243 def set_computeroutput(self, computeroutput):
21244 self.computeroutput = computeroutput
21245 def add_computeroutput(self, value):
21246 self.computeroutput.append(value)
21247 def insert_computeroutput_at(self, index, value):
21248 self.computeroutput.insert(index, value)
21249 def replace_computeroutput_at(self, index, value):
21250 self.computeroutput[index] = value
21251 def get_subscript(self):
21252 return self.subscript
21253 def set_subscript(self, subscript):
21254 self.subscript = subscript
21255 def add_subscript(self, value):
21256 self.subscript.append(value)
21257 def insert_subscript_at(self, index, value):
21258 self.subscript.insert(index, value)
21259 def replace_subscript_at(self, index, value):
21260 self.subscript[index] = value
21262 return self.superscript
21263 def set_superscript(self, superscript):
21264 self.superscript = superscript
21265 def add_superscript(self, value):
21266 self.superscript.append(value)
21267 def insert_superscript_at(self, index, value):
21268 self.superscript.insert(index, value)
21269 def replace_superscript_at(self, index, value):
21270 self.superscript[index] = value
21271 def get_center(self):
21272 return self.center
21273 def set_center(self, center):
21274 self.center = center
21275 def add_center(self, value):
21276 self.center.append(value)
21277 def insert_center_at(self, index, value):
21278 self.center.insert(index, value)
21279 def replace_center_at(self, index, value):
21280 self.center[index] = value
21281 def get_small(self):
21282 return self.small
21283 def set_small(self, small):
21284 self.small = small
21285 def add_small(self, value):
21286 self.small.append(value)
21287 def insert_small_at(self, index, value):
21288 self.small.insert(index, value)
21289 def replace_small_at(self, index, value):
21290 self.small[index] = value
21291 def get_cite(self):
21292 return self.cite
21293 def set_cite(self, cite):
21294 self.cite = cite
21295 def add_cite(self, value):
21296 self.cite.append(value)
21297 def insert_cite_at(self, index, value):
21298 self.cite.insert(index, value)
21299 def replace_cite_at(self, index, value):
21300 self.cite[index] = value
21301 def get_del(self):
21302 return self.del_
21303 def set_del(self, del_):
21304 self.del_ = del_
21305 def add_del(self, value):
21306 self.del_.append(value)
21307 def insert_del_at(self, index, value):
21308 self.del_.insert(index, value)
21309 def replace_del_at(self, index, value):
21310 self.del_[index] = value
21311 def get_ins(self):
21312 return self.ins
21313 def set_ins(self, ins):
21314 self.ins = ins
21315 def add_ins(self, value):
21316 self.ins.append(value)
21317 def insert_ins_at(self, index, value):
21318 self.ins.insert(index, value)
21319 def replace_ins_at(self, index, value):
21320 self.ins[index] = value
21321 def get_htmlonly(self):
21322 return self.htmlonly
21323 def set_htmlonly(self, htmlonly):
21324 self.htmlonly = htmlonly
21325 def add_htmlonly(self, value):
21326 self.htmlonly.append(value)
21327 def insert_htmlonly_at(self, index, value):
21328 self.htmlonly.insert(index, value)
21329 def replace_htmlonly_at(self, index, value):
21330 self.htmlonly[index] = value
21331 def get_manonly(self):
21332 return self.manonly
21333 def set_manonly(self, manonly):
21334 self.manonly = manonly
21335 def add_manonly(self, value):
21336 self.manonly.append(value)
21337 def insert_manonly_at(self, index, value):
21338 self.manonly.insert(index, value)
21339 def replace_manonly_at(self, index, value):
21340 self.manonly[index] = value
21341 def get_xmlonly(self):
21342 return self.xmlonly
21343 def set_xmlonly(self, xmlonly):
21344 self.xmlonly = xmlonly
21345 def add_xmlonly(self, value):
21346 self.xmlonly.append(value)
21347 def insert_xmlonly_at(self, index, value):
21348 self.xmlonly.insert(index, value)
21349 def replace_xmlonly_at(self, index, value):
21350 self.xmlonly[index] = value
21351 def get_rtfonly(self):
21352 return self.rtfonly
21353 def set_rtfonly(self, rtfonly):
21354 self.rtfonly = rtfonly
21355 def add_rtfonly(self, value):
21356 self.rtfonly.append(value)
21357 def insert_rtfonly_at(self, index, value):
21358 self.rtfonly.insert(index, value)
21359 def replace_rtfonly_at(self, index, value):
21360 self.rtfonly[index] = value
21361 def get_latexonly(self):
21362 return self.latexonly
21363 def set_latexonly(self, latexonly):
21364 self.latexonly = latexonly
21365 def add_latexonly(self, value):
21366 self.latexonly.append(value)
21367 def insert_latexonly_at(self, index, value):
21368 self.latexonly.insert(index, value)
21369 def replace_latexonly_at(self, index, value):
21370 self.latexonly[index] = value
21372 return self.docbookonly
21373 def set_docbookonly(self, docbookonly):
21374 self.docbookonly = docbookonly
21375 def add_docbookonly(self, value):
21376 self.docbookonly.append(value)
21377 def insert_docbookonly_at(self, index, value):
21378 self.docbookonly.insert(index, value)
21379 def replace_docbookonly_at(self, index, value):
21380 self.docbookonly[index] = value
21381 def get_image(self):
21382 return self.image
21383 def set_image(self, image):
21384 self.image = image
21385 def add_image(self, value):
21386 self.image.append(value)
21387 def insert_image_at(self, index, value):
21388 self.image.insert(index, value)
21389 def replace_image_at(self, index, value):
21390 self.image[index] = value
21391 def get_dot(self):
21392 return self.dot
21393 def set_dot(self, dot):
21394 self.dot = dot
21395 def add_dot(self, value):
21396 self.dot.append(value)
21397 def insert_dot_at(self, index, value):
21398 self.dot.insert(index, value)
21399 def replace_dot_at(self, index, value):
21400 self.dot[index] = value
21401 def get_msc(self):
21402 return self.msc
21403 def set_msc(self, msc):
21404 self.msc = msc
21405 def add_msc(self, value):
21406 self.msc.append(value)
21407 def insert_msc_at(self, index, value):
21408 self.msc.insert(index, value)
21409 def replace_msc_at(self, index, value):
21410 self.msc[index] = value
21411 def get_plantuml(self):
21412 return self.plantuml
21413 def set_plantuml(self, plantuml):
21414 self.plantuml = plantuml
21415 def add_plantuml(self, value):
21416 self.plantuml.append(value)
21417 def insert_plantuml_at(self, index, value):
21418 self.plantuml.insert(index, value)
21419 def replace_plantuml_at(self, index, value):
21420 self.plantuml[index] = value
21421 def get_anchor(self):
21422 return self.anchor
21423 def set_anchor(self, anchor):
21424 self.anchor = anchor
21425 def add_anchor(self, value):
21426 self.anchor.append(value)
21427 def insert_anchor_at(self, index, value):
21428 self.anchor.insert(index, value)
21429 def replace_anchor_at(self, index, value):
21430 self.anchor[index] = value
21431 def get_formula(self):
21432 return self.formula
21433 def set_formula(self, formula):
21434 self.formula = formula
21435 def add_formula(self, value):
21436 self.formula.append(value)
21437 def insert_formula_at(self, index, value):
21438 self.formula.insert(index, value)
21439 def replace_formula_at(self, index, value):
21440 self.formula[index] = value
21441 def get_ref(self):
21442 return self.ref
21443 def set_ref(self, ref):
21444 self.ref = ref
21445 def add_ref(self, value):
21446 self.ref.append(value)
21447 def insert_ref_at(self, index, value):
21448 self.ref.insert(index, value)
21449 def replace_ref_at(self, index, value):
21450 self.ref[index] = value
21451 def get_emoji(self):
21452 return self.emoji
21453 def set_emoji(self, emoji):
21454 self.emoji = emoji
21455 def add_emoji(self, value):
21456 self.emoji.append(value)
21457 def insert_emoji_at(self, index, value):
21458 self.emoji.insert(index, value)
21459 def replace_emoji_at(self, index, value):
21460 self.emoji[index] = value
21461 def get_linebreak(self):
21462 return self.linebreak
21463 def set_linebreak(self, linebreak):
21464 self.linebreak = linebreak
21465 def add_linebreak(self, value):
21466 self.linebreak.append(value)
21467 def insert_linebreak_at(self, index, value):
21468 self.linebreak.insert(index, value)
21469 def replace_linebreak_at(self, index, value):
21470 self.linebreak[index] = value
21471 def get_name(self):
21472 return self.name
21473 def set_name(self, name):
21474 self.name = name
21475 def get_width(self):
21476 return self.width
21477 def set_width(self, width):
21478 self.width = width
21479 def get_height(self):
21480 return self.height
21481 def set_height(self, height):
21482 self.height = height
21483 def get_caption(self):
21484 return self.caption
21485 def set_caption(self, caption):
21486 self.caption = caption
21487 def get_valueOf_(self): return self.valueOf_
21488 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
21489 def hasContent_(self):
21490 if (
21491 self.ulink or
21492 self.bold or
21493 self.s or
21494 self.strike or
21495 self.underline or
21496 self.emphasis or
21497 self.computeroutput or
21498 self.subscript or
21499 self.superscript or
21500 self.center or
21501 self.small or
21502 self.cite or
21503 self.del_ or
21504 self.ins or
21505 self.htmlonly or
21506 self.manonly or
21507 self.xmlonly or
21508 self.rtfonly or
21509 self.latexonly or
21510 self.docbookonly or
21511 self.image or
21512 self.dot or
21513 self.msc or
21514 self.plantuml or
21515 self.anchor or
21516 self.formula or
21517 self.ref or
21518 self.emoji or
21519 self.linebreak or
21520 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
21521 self.content_
21522 ):
21523 return True
21524 else:
21525 return False
21526 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDotMscType', pretty_print=True):
21527 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docDotMscType')
21528 if imported_ns_def_ is not None:
21529 namespacedef_ = imported_ns_def_
21530 if pretty_print:
21531 eol_ = '\n'
21532 else:
21533 eol_ = ''
21534 if self.original_tagname_ is not None and name_ == 'docDotMscType':
21535 name_ = self.original_tagname_
21536 if UseCapturedNS_ and self.ns_prefix_:
21537 namespaceprefix_ = self.ns_prefix_ + ':'
21538 showIndent(outfile, level, pretty_print)
21539 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
21540 already_processed = set()
21541 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docDotMscType')
21542 if self.hasContent_hasContent_():
21543 outfile.write('>%s' % (eol_, ))
21544 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docDotMscType', pretty_print=pretty_print)
21545 showIndent(outfile, level, pretty_print)
21546 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
21547 else:
21548 outfile.write('/>%s' % (eol_, ))
21549 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docDotMscType'):
21550 if self.name is not None and 'name' not in already_processed:
21551 already_processed.add('name')
21552 outfile.write(' name=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.name), input_name='name')), ))
21553 if self.width is not None and 'width' not in already_processed:
21554 already_processed.add('width')
21555 outfile.write(' width=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.width), input_name='width')), ))
21556 if self.height is not None and 'height' not in already_processed:
21557 already_processed.add('height')
21558 outfile.write(' height=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.height), input_name='height')), ))
21559 if self.caption is not None and 'caption' not in already_processed:
21560 already_processed.add('caption')
21561 outfile.write(' caption=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.caption), input_name='caption')), ))
21562 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDotMscType', fromsubclass_=False, pretty_print=True):
21563 if not fromsubclass_:
21564 for item_ in self.content_:
21565 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
21566 if pretty_print:
21567 eol_ = '\n'
21568 else:
21569 eol_ = ''
21570 for ulink_ in self.ulink:
21571 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
21572 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
21573 for bold_ in self.bold:
21574 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
21575 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
21576 for s_ in self.s:
21577 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
21578 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
21579 for strike_ in self.strike:
21580 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
21581 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
21582 for underline_ in self.underline:
21583 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
21584 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
21585 for emphasis_ in self.emphasis:
21586 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
21587 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
21588 for computeroutput_ in self.computeroutput:
21589 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
21590 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
21591 for subscript_ in self.subscript:
21592 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
21593 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
21594 for superscript_ in self.superscript:
21595 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
21596 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
21597 for center_ in self.center:
21598 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
21599 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
21600 for small_ in self.small:
21601 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
21602 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
21603 for cite_ in self.cite:
21604 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
21605 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
21606 for del_ in self.del_:
21607 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
21608 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
21609 for ins_ in self.ins:
21610 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
21611 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
21612 for htmlonly_ in self.htmlonly:
21613 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
21614 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
21615 for manonly_ in self.manonly:
21616 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
21617 showIndent(outfile, level, pretty_print)
21618 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
21619 for xmlonly_ in self.xmlonly:
21620 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
21621 showIndent(outfile, level, pretty_print)
21622 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
21623 for rtfonly_ in self.rtfonly:
21624 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
21625 showIndent(outfile, level, pretty_print)
21626 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
21627 for latexonly_ in self.latexonly:
21628 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
21629 showIndent(outfile, level, pretty_print)
21630 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
21631 for docbookonly_ in self.docbookonly:
21632 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
21633 showIndent(outfile, level, pretty_print)
21634 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
21635 for image_ in self.image:
21636 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
21637 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
21638 for dot_ in self.dot:
21639 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
21640 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
21641 for msc_ in self.msc:
21642 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
21643 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
21644 for plantuml_ in self.plantuml:
21645 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
21646 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
21647 for anchor_ in self.anchor:
21648 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
21649 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
21650 for formula_ in self.formula:
21651 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
21652 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
21653 for ref_ in self.ref:
21654 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
21655 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
21656 for emoji_ in self.emoji:
21657 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
21658 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
21659 for linebreak_ in self.linebreak:
21660 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
21661 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
21662 def build(self, node, gds_collector_=None):
21663 self.gds_collector_ = gds_collector_
21664 if SaveElementTreeNode:
21665 self.gds_elementtree_node_ = node
21666 already_processed = set()
21667 self.ns_prefix_ = node.prefix
21668 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
21669 self.valueOf_ = get_all_text_(node)
21670 if node.text is not None:
21671 obj_ = self.mixedclass_(MixedContainer.CategoryText,
21672 MixedContainer.TypeNone, '', node.text)
21673 self.content_.append(obj_)
21674 for child in node:
21675 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
21676 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
21677 return self
21678 def buildAttributes(self, node, attrs, already_processed):
21679 value = find_attr_value_('name', node)
21680 if value is not None and 'name' not in already_processed:
21681 already_processed.add('name')
21682 self.name = value
21683 value = find_attr_value_('width', node)
21684 if value is not None and 'width' not in already_processed:
21685 already_processed.add('width')
21686 self.width = value
21687 value = find_attr_value_('height', node)
21688 if value is not None and 'height' not in already_processed:
21689 already_processed.add('height')
21690 self.height = value
21691 value = find_attr_value_('caption', node)
21692 if value is not None and 'caption' not in already_processed:
21693 already_processed.add('caption')
21694 self.caption = value
21695 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
21696 if nodeName_ == 'ulink':
21697 obj_ = docURLLink.factory(parent_object_=self)
21698 obj_.build(child_, gds_collector_=gds_collector_)
21699 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21700 MixedContainer.TypeNone, 'ulink', obj_)
21701 self.content_.append(obj_)
21702 if hasattr(self, 'add_ulink'):
21703 self.add_ulinkadd_ulink(obj_.value)
21704 elif hasattr(self, 'set_ulink'):
21705 self.set_ulinkset_ulink(obj_.value)
21706 elif nodeName_ == 'bold':
21707 obj_ = docMarkupType.factory(parent_object_=self)
21708 obj_.build(child_, gds_collector_=gds_collector_)
21709 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21710 MixedContainer.TypeNone, 'bold', obj_)
21711 self.content_.append(obj_)
21712 if hasattr(self, 'add_bold'):
21713 self.add_boldadd_bold(obj_.value)
21714 elif hasattr(self, 'set_bold'):
21715 self.set_boldset_bold(obj_.value)
21716 elif nodeName_ == 's':
21717 obj_ = docMarkupType.factory(parent_object_=self)
21718 obj_.build(child_, gds_collector_=gds_collector_)
21719 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21720 MixedContainer.TypeNone, 's', obj_)
21721 self.content_.append(obj_)
21722 if hasattr(self, 'add_s'):
21723 self.add_sadd_s(obj_.value)
21724 elif hasattr(self, 'set_s'):
21725 self.set_sset_s(obj_.value)
21726 elif nodeName_ == 'strike':
21727 obj_ = docMarkupType.factory(parent_object_=self)
21728 obj_.build(child_, gds_collector_=gds_collector_)
21729 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21730 MixedContainer.TypeNone, 'strike', obj_)
21731 self.content_.append(obj_)
21732 if hasattr(self, 'add_strike'):
21733 self.add_strikeadd_strike(obj_.value)
21734 elif hasattr(self, 'set_strike'):
21735 self.set_strikeset_strike(obj_.value)
21736 elif nodeName_ == 'underline':
21737 obj_ = docMarkupType.factory(parent_object_=self)
21738 obj_.build(child_, gds_collector_=gds_collector_)
21739 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21740 MixedContainer.TypeNone, 'underline', obj_)
21741 self.content_.append(obj_)
21742 if hasattr(self, 'add_underline'):
21743 self.add_underlineadd_underline(obj_.value)
21744 elif hasattr(self, 'set_underline'):
21745 self.set_underlineset_underline(obj_.value)
21746 elif nodeName_ == 'emphasis':
21747 obj_ = docMarkupType.factory(parent_object_=self)
21748 obj_.build(child_, gds_collector_=gds_collector_)
21749 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21750 MixedContainer.TypeNone, 'emphasis', obj_)
21751 self.content_.append(obj_)
21752 if hasattr(self, 'add_emphasis'):
21753 self.add_emphasisadd_emphasis(obj_.value)
21754 elif hasattr(self, 'set_emphasis'):
21755 self.set_emphasisset_emphasis(obj_.value)
21756 elif nodeName_ == 'computeroutput':
21757 obj_ = docMarkupType.factory(parent_object_=self)
21758 obj_.build(child_, gds_collector_=gds_collector_)
21759 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21760 MixedContainer.TypeNone, 'computeroutput', obj_)
21761 self.content_.append(obj_)
21762 if hasattr(self, 'add_computeroutput'):
21764 elif hasattr(self, 'set_computeroutput'):
21766 elif nodeName_ == 'subscript':
21767 obj_ = docMarkupType.factory(parent_object_=self)
21768 obj_.build(child_, gds_collector_=gds_collector_)
21769 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21770 MixedContainer.TypeNone, 'subscript', obj_)
21771 self.content_.append(obj_)
21772 if hasattr(self, 'add_subscript'):
21773 self.add_subscriptadd_subscript(obj_.value)
21774 elif hasattr(self, 'set_subscript'):
21775 self.set_subscriptset_subscript(obj_.value)
21776 elif nodeName_ == 'superscript':
21777 obj_ = docMarkupType.factory(parent_object_=self)
21778 obj_.build(child_, gds_collector_=gds_collector_)
21779 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21780 MixedContainer.TypeNone, 'superscript', obj_)
21781 self.content_.append(obj_)
21782 if hasattr(self, 'add_superscript'):
21783 self.add_superscriptadd_superscript(obj_.value)
21784 elif hasattr(self, 'set_superscript'):
21785 self.set_superscriptset_superscript(obj_.value)
21786 elif nodeName_ == 'center':
21787 obj_ = docMarkupType.factory(parent_object_=self)
21788 obj_.build(child_, gds_collector_=gds_collector_)
21789 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21790 MixedContainer.TypeNone, 'center', obj_)
21791 self.content_.append(obj_)
21792 if hasattr(self, 'add_center'):
21793 self.add_centeradd_center(obj_.value)
21794 elif hasattr(self, 'set_center'):
21795 self.set_centerset_center(obj_.value)
21796 elif nodeName_ == 'small':
21797 obj_ = docMarkupType.factory(parent_object_=self)
21798 obj_.build(child_, gds_collector_=gds_collector_)
21799 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21800 MixedContainer.TypeNone, 'small', obj_)
21801 self.content_.append(obj_)
21802 if hasattr(self, 'add_small'):
21803 self.add_smalladd_small(obj_.value)
21804 elif hasattr(self, 'set_small'):
21805 self.set_smallset_small(obj_.value)
21806 elif nodeName_ == 'cite':
21807 obj_ = docMarkupType.factory(parent_object_=self)
21808 obj_.build(child_, gds_collector_=gds_collector_)
21809 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21810 MixedContainer.TypeNone, 'cite', obj_)
21811 self.content_.append(obj_)
21812 if hasattr(self, 'add_cite'):
21813 self.add_citeadd_cite(obj_.value)
21814 elif hasattr(self, 'set_cite'):
21815 self.set_citeset_cite(obj_.value)
21816 elif nodeName_ == 'del':
21817 obj_ = docMarkupType.factory(parent_object_=self)
21818 obj_.build(child_, gds_collector_=gds_collector_)
21819 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21820 MixedContainer.TypeNone, 'del', obj_)
21821 self.content_.append(obj_)
21822 if hasattr(self, 'add_del'):
21823 self.add_deladd_del(obj_.value)
21824 elif hasattr(self, 'set_del'):
21825 self.set_delset_del(obj_.value)
21826 elif nodeName_ == 'ins':
21827 obj_ = docMarkupType.factory(parent_object_=self)
21828 obj_.build(child_, gds_collector_=gds_collector_)
21829 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21830 MixedContainer.TypeNone, 'ins', obj_)
21831 self.content_.append(obj_)
21832 if hasattr(self, 'add_ins'):
21833 self.add_insadd_ins(obj_.value)
21834 elif hasattr(self, 'set_ins'):
21835 self.set_insset_ins(obj_.value)
21836 elif nodeName_ == 'htmlonly':
21837 obj_ = docHtmlOnlyType.factory(parent_object_=self)
21838 obj_.build(child_, gds_collector_=gds_collector_)
21839 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21840 MixedContainer.TypeNone, 'htmlonly', obj_)
21841 self.content_.append(obj_)
21842 if hasattr(self, 'add_htmlonly'):
21843 self.add_htmlonlyadd_htmlonly(obj_.value)
21844 elif hasattr(self, 'set_htmlonly'):
21845 self.set_htmlonlyset_htmlonly(obj_.value)
21846 elif nodeName_ == 'manonly' and child_.text is not None:
21847 valuestr_ = child_.text
21848 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
21849 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
21850 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
21851 MixedContainer.TypeString, 'manonly', valuestr_)
21852 self.content_.append(obj_)
21853 self.manonly_nsprefix_ = child_.prefix
21854 elif nodeName_ == 'xmlonly' and child_.text is not None:
21855 valuestr_ = child_.text
21856 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
21857 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
21858 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
21859 MixedContainer.TypeString, 'xmlonly', valuestr_)
21860 self.content_.append(obj_)
21861 self.xmlonly_nsprefix_ = child_.prefix
21862 elif nodeName_ == 'rtfonly' and child_.text is not None:
21863 valuestr_ = child_.text
21864 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
21865 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
21866 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
21867 MixedContainer.TypeString, 'rtfonly', valuestr_)
21868 self.content_.append(obj_)
21869 self.rtfonly_nsprefix_ = child_.prefix
21870 elif nodeName_ == 'latexonly' and child_.text is not None:
21871 valuestr_ = child_.text
21872 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
21873 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
21874 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
21875 MixedContainer.TypeString, 'latexonly', valuestr_)
21876 self.content_.append(obj_)
21877 self.latexonly_nsprefix_ = child_.prefix
21878 elif nodeName_ == 'docbookonly' and child_.text is not None:
21879 valuestr_ = child_.text
21880 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
21881 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
21882 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
21883 MixedContainer.TypeString, 'docbookonly', valuestr_)
21884 self.content_.append(obj_)
21885 self.docbookonly_nsprefix_ = child_.prefix
21886 elif nodeName_ == 'image':
21887 obj_ = docImageType.factory(parent_object_=self)
21888 obj_.build(child_, gds_collector_=gds_collector_)
21889 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21890 MixedContainer.TypeNone, 'image', obj_)
21891 self.content_.append(obj_)
21892 if hasattr(self, 'add_image'):
21893 self.add_imageadd_image(obj_.value)
21894 elif hasattr(self, 'set_image'):
21895 self.set_imageset_image(obj_.value)
21896 elif nodeName_ == 'dot':
21897 obj_ = docDotMscType.factory(parent_object_=self)
21898 obj_.build(child_, gds_collector_=gds_collector_)
21899 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21900 MixedContainer.TypeNone, 'dot', obj_)
21901 self.content_.append(obj_)
21902 if hasattr(self, 'add_dot'):
21903 self.add_dotadd_dot(obj_.value)
21904 elif hasattr(self, 'set_dot'):
21905 self.set_dotset_dot(obj_.value)
21906 elif nodeName_ == 'msc':
21907 obj_ = docDotMscType.factory(parent_object_=self)
21908 obj_.build(child_, gds_collector_=gds_collector_)
21909 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21910 MixedContainer.TypeNone, 'msc', obj_)
21911 self.content_.append(obj_)
21912 if hasattr(self, 'add_msc'):
21913 self.add_mscadd_msc(obj_.value)
21914 elif hasattr(self, 'set_msc'):
21915 self.set_mscset_msc(obj_.value)
21916 elif nodeName_ == 'plantuml':
21917 obj_ = docPlantumlType.factory(parent_object_=self)
21918 obj_.build(child_, gds_collector_=gds_collector_)
21919 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21920 MixedContainer.TypeNone, 'plantuml', obj_)
21921 self.content_.append(obj_)
21922 if hasattr(self, 'add_plantuml'):
21923 self.add_plantumladd_plantuml(obj_.value)
21924 elif hasattr(self, 'set_plantuml'):
21925 self.set_plantumlset_plantuml(obj_.value)
21926 elif nodeName_ == 'anchor':
21927 obj_ = docAnchorType.factory(parent_object_=self)
21928 obj_.build(child_, gds_collector_=gds_collector_)
21929 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21930 MixedContainer.TypeNone, 'anchor', obj_)
21931 self.content_.append(obj_)
21932 if hasattr(self, 'add_anchor'):
21933 self.add_anchoradd_anchor(obj_.value)
21934 elif hasattr(self, 'set_anchor'):
21935 self.set_anchorset_anchor(obj_.value)
21936 elif nodeName_ == 'formula':
21937 obj_ = docFormulaType.factory(parent_object_=self)
21938 obj_.build(child_, gds_collector_=gds_collector_)
21939 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21940 MixedContainer.TypeNone, 'formula', obj_)
21941 self.content_.append(obj_)
21942 if hasattr(self, 'add_formula'):
21943 self.add_formulaadd_formula(obj_.value)
21944 elif hasattr(self, 'set_formula'):
21945 self.set_formulaset_formula(obj_.value)
21946 elif nodeName_ == 'ref':
21947 obj_ = docRefTextType.factory(parent_object_=self)
21948 obj_.build(child_, gds_collector_=gds_collector_)
21949 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21950 MixedContainer.TypeNone, 'ref', obj_)
21951 self.content_.append(obj_)
21952 if hasattr(self, 'add_ref'):
21953 self.add_refadd_ref(obj_.value)
21954 elif hasattr(self, 'set_ref'):
21955 self.set_refset_ref(obj_.value)
21956 elif nodeName_ == 'emoji':
21957 obj_ = docEmojiType.factory(parent_object_=self)
21958 obj_.build(child_, gds_collector_=gds_collector_)
21959 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21960 MixedContainer.TypeNone, 'emoji', obj_)
21961 self.content_.append(obj_)
21962 if hasattr(self, 'add_emoji'):
21963 self.add_emojiadd_emoji(obj_.value)
21964 elif hasattr(self, 'set_emoji'):
21965 self.set_emojiset_emoji(obj_.value)
21966 elif nodeName_ == 'linebreak':
21967 obj_ = docEmptyType.factory(parent_object_=self)
21968 obj_.build(child_, gds_collector_=gds_collector_)
21969 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
21970 MixedContainer.TypeNone, 'linebreak', obj_)
21971 self.content_.append(obj_)
21972 if hasattr(self, 'add_linebreak'):
21973 self.add_linebreakadd_linebreak(obj_.value)
21974 elif hasattr(self, 'set_linebreak'):
21975 self.set_linebreakset_linebreak(obj_.value)
21976 if not fromsubclass_ and child_.tail is not None:
21977 obj_ = self.mixedclass_(MixedContainer.CategoryText,
21978 MixedContainer.TypeNone, '', child_.tail)
21979 self.content_.append(obj_)
21980# end class docDotMscType
21981
21982
21984 """The mentioned file will be located in the directory as specified by
21985 XML_OUTPUT"""
21986 __hash__ = GeneratedsSuper.__hash__
21987 subclass = None
21988 superclass = None
21989 def __init__(self, name=None, width=None, height=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
21990 self.gds_collector_ = gds_collector_
21991 self.gds_elementtree_node_ = None
21992 self.original_tagname_ = None
21993 self.parent_object_ = kwargs_.get('parent_object_')
21994 self.ns_prefix_ = None
21995 self.name = _cast(None, name)
21996 self.name_nsprefix_ = None
21997 self.width = _cast(None, width)
21998 self.width_nsprefix_ = None
21999 self.height = _cast(None, height)
22000 self.height_nsprefix_ = None
22001 if ulink is None:
22002 self.ulink = []
22003 else:
22004 self.ulink = ulink
22005 self.ulink_nsprefix_ = None
22006 if bold is None:
22007 self.bold = []
22008 else:
22009 self.bold = bold
22010 self.bold_nsprefix_ = None
22011 if s is None:
22012 self.s = []
22013 else:
22014 self.s = s
22015 self.s_nsprefix_ = None
22016 if strike is None:
22017 self.strike = []
22018 else:
22019 self.strike = strike
22020 self.strike_nsprefix_ = None
22021 if underline is None:
22022 self.underline = []
22023 else:
22024 self.underline = underline
22025 self.underline_nsprefix_ = None
22026 if emphasis is None:
22027 self.emphasis = []
22028 else:
22029 self.emphasis = emphasis
22030 self.emphasis_nsprefix_ = None
22031 if computeroutput is None:
22032 self.computeroutput = []
22033 else:
22034 self.computeroutput = computeroutput
22035 self.computeroutput_nsprefix_ = None
22036 if subscript is None:
22037 self.subscript = []
22038 else:
22039 self.subscript = subscript
22040 self.subscript_nsprefix_ = None
22041 if superscript is None:
22042 self.superscript = []
22043 else:
22044 self.superscript = superscript
22045 self.superscript_nsprefix_ = None
22046 if center is None:
22047 self.center = []
22048 else:
22049 self.center = center
22050 self.center_nsprefix_ = None
22051 if small is None:
22052 self.small = []
22053 else:
22054 self.small = small
22055 self.small_nsprefix_ = None
22056 if cite is None:
22057 self.cite = []
22058 else:
22059 self.cite = cite
22060 self.cite_nsprefix_ = None
22061 if del_ is None:
22062 self.del_ = []
22063 else:
22064 self.del_ = del_
22065 self.del__nsprefix_ = None
22066 if ins is None:
22067 self.ins = []
22068 else:
22069 self.ins = ins
22070 self.ins_nsprefix_ = None
22071 if htmlonly is None:
22072 self.htmlonly = []
22073 else:
22074 self.htmlonly = htmlonly
22075 self.htmlonly_nsprefix_ = None
22076 if manonly is None:
22077 self.manonly = []
22078 else:
22079 self.manonly = manonly
22080 self.manonly_nsprefix_ = None
22081 if xmlonly is None:
22082 self.xmlonly = []
22083 else:
22084 self.xmlonly = xmlonly
22085 self.xmlonly_nsprefix_ = None
22086 if rtfonly is None:
22087 self.rtfonly = []
22088 else:
22089 self.rtfonly = rtfonly
22090 self.rtfonly_nsprefix_ = None
22091 if latexonly is None:
22092 self.latexonly = []
22093 else:
22094 self.latexonly = latexonly
22095 self.latexonly_nsprefix_ = None
22096 if docbookonly is None:
22097 self.docbookonly = []
22098 else:
22099 self.docbookonly = docbookonly
22100 self.docbookonly_nsprefix_ = None
22101 if image is None:
22102 self.image = []
22103 else:
22104 self.image = image
22105 self.image_nsprefix_ = None
22106 if dot is None:
22107 self.dot = []
22108 else:
22109 self.dot = dot
22110 self.dot_nsprefix_ = None
22111 if msc is None:
22112 self.msc = []
22113 else:
22114 self.msc = msc
22115 self.msc_nsprefix_ = None
22116 if plantuml is None:
22117 self.plantuml = []
22118 else:
22119 self.plantuml = plantuml
22120 self.plantuml_nsprefix_ = None
22121 if anchor is None:
22122 self.anchor = []
22123 else:
22124 self.anchor = anchor
22125 self.anchor_nsprefix_ = None
22126 if formula is None:
22127 self.formula = []
22128 else:
22129 self.formula = formula
22130 self.formula_nsprefix_ = None
22131 if ref is None:
22132 self.ref = []
22133 else:
22134 self.ref = ref
22135 self.ref_nsprefix_ = None
22136 if emoji is None:
22137 self.emoji = []
22138 else:
22139 self.emoji = emoji
22140 self.emoji_nsprefix_ = None
22141 if linebreak is None:
22142 self.linebreak = []
22143 else:
22144 self.linebreak = linebreak
22145 self.linebreak_nsprefix_ = None
22146 self.valueOf_ = valueOf_
22147 if mixedclass_ is None:
22148 self.mixedclass_ = MixedContainer
22149 else:
22150 self.mixedclass_ = mixedclass_
22151 if content_ is None:
22152 self.content_ = []
22153 else:
22154 self.content_ = content_
22155 self.valueOf_ = valueOf_
22156 def factory(*args_, **kwargs_):
22157 if CurrentSubclassModule_ is not None:
22158 subclass = getSubclassFromModule_(
22159 CurrentSubclassModule_, docImageFileType)
22160 if subclass is not None:
22161 return subclass(*args_, **kwargs_)
22162 if docImageFileType.subclass:
22163 return docImageFileType.subclass(*args_, **kwargs_)
22164 else:
22165 return docImageFileType(*args_, **kwargs_)
22166 factory = staticmethod(factory)
22168 return self.ns_prefix_
22169 def set_ns_prefix_(self, ns_prefix):
22170 self.ns_prefix_ = ns_prefix
22171 def get_ulink(self):
22172 return self.ulink
22173 def set_ulink(self, ulink):
22174 self.ulink = ulink
22175 def add_ulink(self, value):
22176 self.ulink.append(value)
22177 def insert_ulink_at(self, index, value):
22178 self.ulink.insert(index, value)
22179 def replace_ulink_at(self, index, value):
22180 self.ulink[index] = value
22181 def get_bold(self):
22182 return self.bold
22183 def set_bold(self, bold):
22184 self.bold = bold
22185 def add_bold(self, value):
22186 self.bold.append(value)
22187 def insert_bold_at(self, index, value):
22188 self.bold.insert(index, value)
22189 def replace_bold_at(self, index, value):
22190 self.bold[index] = value
22191 def get_s(self):
22192 return self.s
22193 def set_s(self, s):
22194 self.s = s
22195 def add_s(self, value):
22196 self.s.append(value)
22197 def insert_s_at(self, index, value):
22198 self.s.insert(index, value)
22199 def replace_s_at(self, index, value):
22200 self.s[index] = value
22201 def get_strike(self):
22202 return self.strike
22203 def set_strike(self, strike):
22204 self.strike = strike
22205 def add_strike(self, value):
22206 self.strike.append(value)
22207 def insert_strike_at(self, index, value):
22208 self.strike.insert(index, value)
22209 def replace_strike_at(self, index, value):
22210 self.strike[index] = value
22211 def get_underline(self):
22212 return self.underline
22213 def set_underline(self, underline):
22214 self.underline = underline
22215 def add_underline(self, value):
22216 self.underline.append(value)
22217 def insert_underline_at(self, index, value):
22218 self.underline.insert(index, value)
22219 def replace_underline_at(self, index, value):
22220 self.underline[index] = value
22221 def get_emphasis(self):
22222 return self.emphasis
22223 def set_emphasis(self, emphasis):
22224 self.emphasis = emphasis
22225 def add_emphasis(self, value):
22226 self.emphasis.append(value)
22227 def insert_emphasis_at(self, index, value):
22228 self.emphasis.insert(index, value)
22229 def replace_emphasis_at(self, index, value):
22230 self.emphasis[index] = value
22232 return self.computeroutput
22233 def set_computeroutput(self, computeroutput):
22234 self.computeroutput = computeroutput
22235 def add_computeroutput(self, value):
22236 self.computeroutput.append(value)
22237 def insert_computeroutput_at(self, index, value):
22238 self.computeroutput.insert(index, value)
22239 def replace_computeroutput_at(self, index, value):
22240 self.computeroutput[index] = value
22241 def get_subscript(self):
22242 return self.subscript
22243 def set_subscript(self, subscript):
22244 self.subscript = subscript
22245 def add_subscript(self, value):
22246 self.subscript.append(value)
22247 def insert_subscript_at(self, index, value):
22248 self.subscript.insert(index, value)
22249 def replace_subscript_at(self, index, value):
22250 self.subscript[index] = value
22252 return self.superscript
22253 def set_superscript(self, superscript):
22254 self.superscript = superscript
22255 def add_superscript(self, value):
22256 self.superscript.append(value)
22257 def insert_superscript_at(self, index, value):
22258 self.superscript.insert(index, value)
22259 def replace_superscript_at(self, index, value):
22260 self.superscript[index] = value
22261 def get_center(self):
22262 return self.center
22263 def set_center(self, center):
22264 self.center = center
22265 def add_center(self, value):
22266 self.center.append(value)
22267 def insert_center_at(self, index, value):
22268 self.center.insert(index, value)
22269 def replace_center_at(self, index, value):
22270 self.center[index] = value
22271 def get_small(self):
22272 return self.small
22273 def set_small(self, small):
22274 self.small = small
22275 def add_small(self, value):
22276 self.small.append(value)
22277 def insert_small_at(self, index, value):
22278 self.small.insert(index, value)
22279 def replace_small_at(self, index, value):
22280 self.small[index] = value
22281 def get_cite(self):
22282 return self.cite
22283 def set_cite(self, cite):
22284 self.cite = cite
22285 def add_cite(self, value):
22286 self.cite.append(value)
22287 def insert_cite_at(self, index, value):
22288 self.cite.insert(index, value)
22289 def replace_cite_at(self, index, value):
22290 self.cite[index] = value
22291 def get_del(self):
22292 return self.del_
22293 def set_del(self, del_):
22294 self.del_ = del_
22295 def add_del(self, value):
22296 self.del_.append(value)
22297 def insert_del_at(self, index, value):
22298 self.del_.insert(index, value)
22299 def replace_del_at(self, index, value):
22300 self.del_[index] = value
22301 def get_ins(self):
22302 return self.ins
22303 def set_ins(self, ins):
22304 self.ins = ins
22305 def add_ins(self, value):
22306 self.ins.append(value)
22307 def insert_ins_at(self, index, value):
22308 self.ins.insert(index, value)
22309 def replace_ins_at(self, index, value):
22310 self.ins[index] = value
22311 def get_htmlonly(self):
22312 return self.htmlonly
22313 def set_htmlonly(self, htmlonly):
22314 self.htmlonly = htmlonly
22315 def add_htmlonly(self, value):
22316 self.htmlonly.append(value)
22317 def insert_htmlonly_at(self, index, value):
22318 self.htmlonly.insert(index, value)
22319 def replace_htmlonly_at(self, index, value):
22320 self.htmlonly[index] = value
22321 def get_manonly(self):
22322 return self.manonly
22323 def set_manonly(self, manonly):
22324 self.manonly = manonly
22325 def add_manonly(self, value):
22326 self.manonly.append(value)
22327 def insert_manonly_at(self, index, value):
22328 self.manonly.insert(index, value)
22329 def replace_manonly_at(self, index, value):
22330 self.manonly[index] = value
22331 def get_xmlonly(self):
22332 return self.xmlonly
22333 def set_xmlonly(self, xmlonly):
22334 self.xmlonly = xmlonly
22335 def add_xmlonly(self, value):
22336 self.xmlonly.append(value)
22337 def insert_xmlonly_at(self, index, value):
22338 self.xmlonly.insert(index, value)
22339 def replace_xmlonly_at(self, index, value):
22340 self.xmlonly[index] = value
22341 def get_rtfonly(self):
22342 return self.rtfonly
22343 def set_rtfonly(self, rtfonly):
22344 self.rtfonly = rtfonly
22345 def add_rtfonly(self, value):
22346 self.rtfonly.append(value)
22347 def insert_rtfonly_at(self, index, value):
22348 self.rtfonly.insert(index, value)
22349 def replace_rtfonly_at(self, index, value):
22350 self.rtfonly[index] = value
22351 def get_latexonly(self):
22352 return self.latexonly
22353 def set_latexonly(self, latexonly):
22354 self.latexonly = latexonly
22355 def add_latexonly(self, value):
22356 self.latexonly.append(value)
22357 def insert_latexonly_at(self, index, value):
22358 self.latexonly.insert(index, value)
22359 def replace_latexonly_at(self, index, value):
22360 self.latexonly[index] = value
22362 return self.docbookonly
22363 def set_docbookonly(self, docbookonly):
22364 self.docbookonly = docbookonly
22365 def add_docbookonly(self, value):
22366 self.docbookonly.append(value)
22367 def insert_docbookonly_at(self, index, value):
22368 self.docbookonly.insert(index, value)
22369 def replace_docbookonly_at(self, index, value):
22370 self.docbookonly[index] = value
22371 def get_image(self):
22372 return self.image
22373 def set_image(self, image):
22374 self.image = image
22375 def add_image(self, value):
22376 self.image.append(value)
22377 def insert_image_at(self, index, value):
22378 self.image.insert(index, value)
22379 def replace_image_at(self, index, value):
22380 self.image[index] = value
22381 def get_dot(self):
22382 return self.dot
22383 def set_dot(self, dot):
22384 self.dot = dot
22385 def add_dot(self, value):
22386 self.dot.append(value)
22387 def insert_dot_at(self, index, value):
22388 self.dot.insert(index, value)
22389 def replace_dot_at(self, index, value):
22390 self.dot[index] = value
22391 def get_msc(self):
22392 return self.msc
22393 def set_msc(self, msc):
22394 self.msc = msc
22395 def add_msc(self, value):
22396 self.msc.append(value)
22397 def insert_msc_at(self, index, value):
22398 self.msc.insert(index, value)
22399 def replace_msc_at(self, index, value):
22400 self.msc[index] = value
22401 def get_plantuml(self):
22402 return self.plantuml
22403 def set_plantuml(self, plantuml):
22404 self.plantuml = plantuml
22405 def add_plantuml(self, value):
22406 self.plantuml.append(value)
22407 def insert_plantuml_at(self, index, value):
22408 self.plantuml.insert(index, value)
22409 def replace_plantuml_at(self, index, value):
22410 self.plantuml[index] = value
22411 def get_anchor(self):
22412 return self.anchor
22413 def set_anchor(self, anchor):
22414 self.anchor = anchor
22415 def add_anchor(self, value):
22416 self.anchor.append(value)
22417 def insert_anchor_at(self, index, value):
22418 self.anchor.insert(index, value)
22419 def replace_anchor_at(self, index, value):
22420 self.anchor[index] = value
22421 def get_formula(self):
22422 return self.formula
22423 def set_formula(self, formula):
22424 self.formula = formula
22425 def add_formula(self, value):
22426 self.formula.append(value)
22427 def insert_formula_at(self, index, value):
22428 self.formula.insert(index, value)
22429 def replace_formula_at(self, index, value):
22430 self.formula[index] = value
22431 def get_ref(self):
22432 return self.ref
22433 def set_ref(self, ref):
22434 self.ref = ref
22435 def add_ref(self, value):
22436 self.ref.append(value)
22437 def insert_ref_at(self, index, value):
22438 self.ref.insert(index, value)
22439 def replace_ref_at(self, index, value):
22440 self.ref[index] = value
22441 def get_emoji(self):
22442 return self.emoji
22443 def set_emoji(self, emoji):
22444 self.emoji = emoji
22445 def add_emoji(self, value):
22446 self.emoji.append(value)
22447 def insert_emoji_at(self, index, value):
22448 self.emoji.insert(index, value)
22449 def replace_emoji_at(self, index, value):
22450 self.emoji[index] = value
22451 def get_linebreak(self):
22452 return self.linebreak
22453 def set_linebreak(self, linebreak):
22454 self.linebreak = linebreak
22455 def add_linebreak(self, value):
22456 self.linebreak.append(value)
22457 def insert_linebreak_at(self, index, value):
22458 self.linebreak.insert(index, value)
22459 def replace_linebreak_at(self, index, value):
22460 self.linebreak[index] = value
22461 def get_name(self):
22462 return self.name
22463 def set_name(self, name):
22464 self.name = name
22465 def get_width(self):
22466 return self.width
22467 def set_width(self, width):
22468 self.width = width
22469 def get_height(self):
22470 return self.height
22471 def set_height(self, height):
22472 self.height = height
22473 def get_valueOf_(self): return self.valueOf_
22474 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
22475 def hasContent_(self):
22476 if (
22477 self.ulink or
22478 self.bold or
22479 self.s or
22480 self.strike or
22481 self.underline or
22482 self.emphasis or
22483 self.computeroutput or
22484 self.subscript or
22485 self.superscript or
22486 self.center or
22487 self.small or
22488 self.cite or
22489 self.del_ or
22490 self.ins or
22491 self.htmlonly or
22492 self.manonly or
22493 self.xmlonly or
22494 self.rtfonly or
22495 self.latexonly or
22496 self.docbookonly or
22497 self.image or
22498 self.dot or
22499 self.msc or
22500 self.plantuml or
22501 self.anchor or
22502 self.formula or
22503 self.ref or
22504 self.emoji or
22505 self.linebreak or
22506 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
22507 self.content_
22508 ):
22509 return True
22510 else:
22511 return False
22512 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageFileType', pretty_print=True):
22513 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docImageFileType')
22514 if imported_ns_def_ is not None:
22515 namespacedef_ = imported_ns_def_
22516 if pretty_print:
22517 eol_ = '\n'
22518 else:
22519 eol_ = ''
22520 if self.original_tagname_ is not None and name_ == 'docImageFileType':
22521 name_ = self.original_tagname_
22522 if UseCapturedNS_ and self.ns_prefix_:
22523 namespaceprefix_ = self.ns_prefix_ + ':'
22524 showIndent(outfile, level, pretty_print)
22525 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
22526 already_processed = set()
22527 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docImageFileType')
22528 if self.hasContent_hasContent_():
22529 outfile.write('>%s' % (eol_, ))
22530 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docImageFileType', pretty_print=pretty_print)
22531 showIndent(outfile, level, pretty_print)
22532 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
22533 else:
22534 outfile.write('/>%s' % (eol_, ))
22535 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docImageFileType'):
22536 if self.name is not None and 'name' not in already_processed:
22537 already_processed.add('name')
22538 outfile.write(' name=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.name), input_name='name')), ))
22539 if self.width is not None and 'width' not in already_processed:
22540 already_processed.add('width')
22541 outfile.write(' width=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.width), input_name='width')), ))
22542 if self.height is not None and 'height' not in already_processed:
22543 already_processed.add('height')
22544 outfile.write(' height=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.height), input_name='height')), ))
22545 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageFileType', fromsubclass_=False, pretty_print=True):
22546 if not fromsubclass_:
22547 for item_ in self.content_:
22548 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
22549 if pretty_print:
22550 eol_ = '\n'
22551 else:
22552 eol_ = ''
22553 for ulink_ in self.ulink:
22554 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
22555 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
22556 for bold_ in self.bold:
22557 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
22558 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
22559 for s_ in self.s:
22560 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
22561 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
22562 for strike_ in self.strike:
22563 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
22564 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
22565 for underline_ in self.underline:
22566 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
22567 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
22568 for emphasis_ in self.emphasis:
22569 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
22570 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
22571 for computeroutput_ in self.computeroutput:
22572 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
22573 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
22574 for subscript_ in self.subscript:
22575 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
22576 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
22577 for superscript_ in self.superscript:
22578 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
22579 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
22580 for center_ in self.center:
22581 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
22582 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
22583 for small_ in self.small:
22584 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
22585 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
22586 for cite_ in self.cite:
22587 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
22588 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
22589 for del_ in self.del_:
22590 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
22591 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
22592 for ins_ in self.ins:
22593 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
22594 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
22595 for htmlonly_ in self.htmlonly:
22596 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
22597 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
22598 for manonly_ in self.manonly:
22599 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
22600 showIndent(outfile, level, pretty_print)
22601 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
22602 for xmlonly_ in self.xmlonly:
22603 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
22604 showIndent(outfile, level, pretty_print)
22605 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
22606 for rtfonly_ in self.rtfonly:
22607 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
22608 showIndent(outfile, level, pretty_print)
22609 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
22610 for latexonly_ in self.latexonly:
22611 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
22612 showIndent(outfile, level, pretty_print)
22613 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
22614 for docbookonly_ in self.docbookonly:
22615 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
22616 showIndent(outfile, level, pretty_print)
22617 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
22618 for image_ in self.image:
22619 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
22620 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
22621 for dot_ in self.dot:
22622 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
22623 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
22624 for msc_ in self.msc:
22625 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
22626 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
22627 for plantuml_ in self.plantuml:
22628 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
22629 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
22630 for anchor_ in self.anchor:
22631 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
22632 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
22633 for formula_ in self.formula:
22634 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
22635 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
22636 for ref_ in self.ref:
22637 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
22638 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
22639 for emoji_ in self.emoji:
22640 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
22641 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
22642 for linebreak_ in self.linebreak:
22643 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
22644 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
22645 def build(self, node, gds_collector_=None):
22646 self.gds_collector_ = gds_collector_
22647 if SaveElementTreeNode:
22648 self.gds_elementtree_node_ = node
22649 already_processed = set()
22650 self.ns_prefix_ = node.prefix
22651 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
22652 self.valueOf_ = get_all_text_(node)
22653 if node.text is not None:
22654 obj_ = self.mixedclass_(MixedContainer.CategoryText,
22655 MixedContainer.TypeNone, '', node.text)
22656 self.content_.append(obj_)
22657 for child in node:
22658 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
22659 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
22660 return self
22661 def buildAttributes(self, node, attrs, already_processed):
22662 value = find_attr_value_('name', node)
22663 if value is not None and 'name' not in already_processed:
22664 already_processed.add('name')
22665 self.name = value
22666 value = find_attr_value_('width', node)
22667 if value is not None and 'width' not in already_processed:
22668 already_processed.add('width')
22669 self.width = value
22670 value = find_attr_value_('height', node)
22671 if value is not None and 'height' not in already_processed:
22672 already_processed.add('height')
22673 self.height = value
22674 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
22675 if nodeName_ == 'ulink':
22676 obj_ = docURLLink.factory(parent_object_=self)
22677 obj_.build(child_, gds_collector_=gds_collector_)
22678 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22679 MixedContainer.TypeNone, 'ulink', obj_)
22680 self.content_.append(obj_)
22681 if hasattr(self, 'add_ulink'):
22682 self.add_ulinkadd_ulink(obj_.value)
22683 elif hasattr(self, 'set_ulink'):
22684 self.set_ulinkset_ulink(obj_.value)
22685 elif nodeName_ == 'bold':
22686 obj_ = docMarkupType.factory(parent_object_=self)
22687 obj_.build(child_, gds_collector_=gds_collector_)
22688 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22689 MixedContainer.TypeNone, 'bold', obj_)
22690 self.content_.append(obj_)
22691 if hasattr(self, 'add_bold'):
22692 self.add_boldadd_bold(obj_.value)
22693 elif hasattr(self, 'set_bold'):
22694 self.set_boldset_bold(obj_.value)
22695 elif nodeName_ == 's':
22696 obj_ = docMarkupType.factory(parent_object_=self)
22697 obj_.build(child_, gds_collector_=gds_collector_)
22698 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22699 MixedContainer.TypeNone, 's', obj_)
22700 self.content_.append(obj_)
22701 if hasattr(self, 'add_s'):
22702 self.add_sadd_s(obj_.value)
22703 elif hasattr(self, 'set_s'):
22704 self.set_sset_s(obj_.value)
22705 elif nodeName_ == 'strike':
22706 obj_ = docMarkupType.factory(parent_object_=self)
22707 obj_.build(child_, gds_collector_=gds_collector_)
22708 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22709 MixedContainer.TypeNone, 'strike', obj_)
22710 self.content_.append(obj_)
22711 if hasattr(self, 'add_strike'):
22712 self.add_strikeadd_strike(obj_.value)
22713 elif hasattr(self, 'set_strike'):
22714 self.set_strikeset_strike(obj_.value)
22715 elif nodeName_ == 'underline':
22716 obj_ = docMarkupType.factory(parent_object_=self)
22717 obj_.build(child_, gds_collector_=gds_collector_)
22718 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22719 MixedContainer.TypeNone, 'underline', obj_)
22720 self.content_.append(obj_)
22721 if hasattr(self, 'add_underline'):
22722 self.add_underlineadd_underline(obj_.value)
22723 elif hasattr(self, 'set_underline'):
22724 self.set_underlineset_underline(obj_.value)
22725 elif nodeName_ == 'emphasis':
22726 obj_ = docMarkupType.factory(parent_object_=self)
22727 obj_.build(child_, gds_collector_=gds_collector_)
22728 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22729 MixedContainer.TypeNone, 'emphasis', obj_)
22730 self.content_.append(obj_)
22731 if hasattr(self, 'add_emphasis'):
22732 self.add_emphasisadd_emphasis(obj_.value)
22733 elif hasattr(self, 'set_emphasis'):
22734 self.set_emphasisset_emphasis(obj_.value)
22735 elif nodeName_ == 'computeroutput':
22736 obj_ = docMarkupType.factory(parent_object_=self)
22737 obj_.build(child_, gds_collector_=gds_collector_)
22738 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22739 MixedContainer.TypeNone, 'computeroutput', obj_)
22740 self.content_.append(obj_)
22741 if hasattr(self, 'add_computeroutput'):
22743 elif hasattr(self, 'set_computeroutput'):
22745 elif nodeName_ == 'subscript':
22746 obj_ = docMarkupType.factory(parent_object_=self)
22747 obj_.build(child_, gds_collector_=gds_collector_)
22748 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22749 MixedContainer.TypeNone, 'subscript', obj_)
22750 self.content_.append(obj_)
22751 if hasattr(self, 'add_subscript'):
22752 self.add_subscriptadd_subscript(obj_.value)
22753 elif hasattr(self, 'set_subscript'):
22754 self.set_subscriptset_subscript(obj_.value)
22755 elif nodeName_ == 'superscript':
22756 obj_ = docMarkupType.factory(parent_object_=self)
22757 obj_.build(child_, gds_collector_=gds_collector_)
22758 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22759 MixedContainer.TypeNone, 'superscript', obj_)
22760 self.content_.append(obj_)
22761 if hasattr(self, 'add_superscript'):
22762 self.add_superscriptadd_superscript(obj_.value)
22763 elif hasattr(self, 'set_superscript'):
22764 self.set_superscriptset_superscript(obj_.value)
22765 elif nodeName_ == 'center':
22766 obj_ = docMarkupType.factory(parent_object_=self)
22767 obj_.build(child_, gds_collector_=gds_collector_)
22768 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22769 MixedContainer.TypeNone, 'center', obj_)
22770 self.content_.append(obj_)
22771 if hasattr(self, 'add_center'):
22772 self.add_centeradd_center(obj_.value)
22773 elif hasattr(self, 'set_center'):
22774 self.set_centerset_center(obj_.value)
22775 elif nodeName_ == 'small':
22776 obj_ = docMarkupType.factory(parent_object_=self)
22777 obj_.build(child_, gds_collector_=gds_collector_)
22778 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22779 MixedContainer.TypeNone, 'small', obj_)
22780 self.content_.append(obj_)
22781 if hasattr(self, 'add_small'):
22782 self.add_smalladd_small(obj_.value)
22783 elif hasattr(self, 'set_small'):
22784 self.set_smallset_small(obj_.value)
22785 elif nodeName_ == 'cite':
22786 obj_ = docMarkupType.factory(parent_object_=self)
22787 obj_.build(child_, gds_collector_=gds_collector_)
22788 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22789 MixedContainer.TypeNone, 'cite', obj_)
22790 self.content_.append(obj_)
22791 if hasattr(self, 'add_cite'):
22792 self.add_citeadd_cite(obj_.value)
22793 elif hasattr(self, 'set_cite'):
22794 self.set_citeset_cite(obj_.value)
22795 elif nodeName_ == 'del':
22796 obj_ = docMarkupType.factory(parent_object_=self)
22797 obj_.build(child_, gds_collector_=gds_collector_)
22798 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22799 MixedContainer.TypeNone, 'del', obj_)
22800 self.content_.append(obj_)
22801 if hasattr(self, 'add_del'):
22802 self.add_deladd_del(obj_.value)
22803 elif hasattr(self, 'set_del'):
22804 self.set_delset_del(obj_.value)
22805 elif nodeName_ == 'ins':
22806 obj_ = docMarkupType.factory(parent_object_=self)
22807 obj_.build(child_, gds_collector_=gds_collector_)
22808 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22809 MixedContainer.TypeNone, 'ins', obj_)
22810 self.content_.append(obj_)
22811 if hasattr(self, 'add_ins'):
22812 self.add_insadd_ins(obj_.value)
22813 elif hasattr(self, 'set_ins'):
22814 self.set_insset_ins(obj_.value)
22815 elif nodeName_ == 'htmlonly':
22816 obj_ = docHtmlOnlyType.factory(parent_object_=self)
22817 obj_.build(child_, gds_collector_=gds_collector_)
22818 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22819 MixedContainer.TypeNone, 'htmlonly', obj_)
22820 self.content_.append(obj_)
22821 if hasattr(self, 'add_htmlonly'):
22822 self.add_htmlonlyadd_htmlonly(obj_.value)
22823 elif hasattr(self, 'set_htmlonly'):
22824 self.set_htmlonlyset_htmlonly(obj_.value)
22825 elif nodeName_ == 'manonly' and child_.text is not None:
22826 valuestr_ = child_.text
22827 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
22828 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
22829 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
22830 MixedContainer.TypeString, 'manonly', valuestr_)
22831 self.content_.append(obj_)
22832 self.manonly_nsprefix_ = child_.prefix
22833 elif nodeName_ == 'xmlonly' and child_.text is not None:
22834 valuestr_ = child_.text
22835 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
22836 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
22837 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
22838 MixedContainer.TypeString, 'xmlonly', valuestr_)
22839 self.content_.append(obj_)
22840 self.xmlonly_nsprefix_ = child_.prefix
22841 elif nodeName_ == 'rtfonly' and child_.text is not None:
22842 valuestr_ = child_.text
22843 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
22844 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
22845 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
22846 MixedContainer.TypeString, 'rtfonly', valuestr_)
22847 self.content_.append(obj_)
22848 self.rtfonly_nsprefix_ = child_.prefix
22849 elif nodeName_ == 'latexonly' and child_.text is not None:
22850 valuestr_ = child_.text
22851 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
22852 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
22853 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
22854 MixedContainer.TypeString, 'latexonly', valuestr_)
22855 self.content_.append(obj_)
22856 self.latexonly_nsprefix_ = child_.prefix
22857 elif nodeName_ == 'docbookonly' and child_.text is not None:
22858 valuestr_ = child_.text
22859 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
22860 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
22861 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
22862 MixedContainer.TypeString, 'docbookonly', valuestr_)
22863 self.content_.append(obj_)
22864 self.docbookonly_nsprefix_ = child_.prefix
22865 elif nodeName_ == 'image':
22866 obj_ = docImageType.factory(parent_object_=self)
22867 obj_.build(child_, gds_collector_=gds_collector_)
22868 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22869 MixedContainer.TypeNone, 'image', obj_)
22870 self.content_.append(obj_)
22871 if hasattr(self, 'add_image'):
22872 self.add_imageadd_image(obj_.value)
22873 elif hasattr(self, 'set_image'):
22874 self.set_imageset_image(obj_.value)
22875 elif nodeName_ == 'dot':
22876 obj_ = docDotMscType.factory(parent_object_=self)
22877 obj_.build(child_, gds_collector_=gds_collector_)
22878 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22879 MixedContainer.TypeNone, 'dot', obj_)
22880 self.content_.append(obj_)
22881 if hasattr(self, 'add_dot'):
22882 self.add_dotadd_dot(obj_.value)
22883 elif hasattr(self, 'set_dot'):
22884 self.set_dotset_dot(obj_.value)
22885 elif nodeName_ == 'msc':
22886 obj_ = docDotMscType.factory(parent_object_=self)
22887 obj_.build(child_, gds_collector_=gds_collector_)
22888 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22889 MixedContainer.TypeNone, 'msc', obj_)
22890 self.content_.append(obj_)
22891 if hasattr(self, 'add_msc'):
22892 self.add_mscadd_msc(obj_.value)
22893 elif hasattr(self, 'set_msc'):
22894 self.set_mscset_msc(obj_.value)
22895 elif nodeName_ == 'plantuml':
22896 obj_ = docPlantumlType.factory(parent_object_=self)
22897 obj_.build(child_, gds_collector_=gds_collector_)
22898 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22899 MixedContainer.TypeNone, 'plantuml', obj_)
22900 self.content_.append(obj_)
22901 if hasattr(self, 'add_plantuml'):
22902 self.add_plantumladd_plantuml(obj_.value)
22903 elif hasattr(self, 'set_plantuml'):
22904 self.set_plantumlset_plantuml(obj_.value)
22905 elif nodeName_ == 'anchor':
22906 obj_ = docAnchorType.factory(parent_object_=self)
22907 obj_.build(child_, gds_collector_=gds_collector_)
22908 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22909 MixedContainer.TypeNone, 'anchor', obj_)
22910 self.content_.append(obj_)
22911 if hasattr(self, 'add_anchor'):
22912 self.add_anchoradd_anchor(obj_.value)
22913 elif hasattr(self, 'set_anchor'):
22914 self.set_anchorset_anchor(obj_.value)
22915 elif nodeName_ == 'formula':
22916 obj_ = docFormulaType.factory(parent_object_=self)
22917 obj_.build(child_, gds_collector_=gds_collector_)
22918 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22919 MixedContainer.TypeNone, 'formula', obj_)
22920 self.content_.append(obj_)
22921 if hasattr(self, 'add_formula'):
22922 self.add_formulaadd_formula(obj_.value)
22923 elif hasattr(self, 'set_formula'):
22924 self.set_formulaset_formula(obj_.value)
22925 elif nodeName_ == 'ref':
22926 obj_ = docRefTextType.factory(parent_object_=self)
22927 obj_.build(child_, gds_collector_=gds_collector_)
22928 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22929 MixedContainer.TypeNone, 'ref', obj_)
22930 self.content_.append(obj_)
22931 if hasattr(self, 'add_ref'):
22932 self.add_refadd_ref(obj_.value)
22933 elif hasattr(self, 'set_ref'):
22934 self.set_refset_ref(obj_.value)
22935 elif nodeName_ == 'emoji':
22936 obj_ = docEmojiType.factory(parent_object_=self)
22937 obj_.build(child_, gds_collector_=gds_collector_)
22938 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22939 MixedContainer.TypeNone, 'emoji', obj_)
22940 self.content_.append(obj_)
22941 if hasattr(self, 'add_emoji'):
22942 self.add_emojiadd_emoji(obj_.value)
22943 elif hasattr(self, 'set_emoji'):
22944 self.set_emojiset_emoji(obj_.value)
22945 elif nodeName_ == 'linebreak':
22946 obj_ = docEmptyType.factory(parent_object_=self)
22947 obj_.build(child_, gds_collector_=gds_collector_)
22948 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
22949 MixedContainer.TypeNone, 'linebreak', obj_)
22950 self.content_.append(obj_)
22951 if hasattr(self, 'add_linebreak'):
22952 self.add_linebreakadd_linebreak(obj_.value)
22953 elif hasattr(self, 'set_linebreak'):
22954 self.set_linebreakset_linebreak(obj_.value)
22955 if not fromsubclass_ and child_.tail is not None:
22956 obj_ = self.mixedclass_(MixedContainer.CategoryText,
22957 MixedContainer.TypeNone, '', child_.tail)
22958 self.content_.append(obj_)
22959# end class docImageFileType
22960
22961
22963 __hash__ = GeneratedsSuper.__hash__
22964 subclass = None
22965 superclass = None
22966 def __init__(self, name=None, width=None, height=None, caption=None, engine=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
22967 self.gds_collector_ = gds_collector_
22968 self.gds_elementtree_node_ = None
22969 self.original_tagname_ = None
22970 self.parent_object_ = kwargs_.get('parent_object_')
22971 self.ns_prefix_ = None
22972 self.name = _cast(None, name)
22973 self.name_nsprefix_ = None
22974 self.width = _cast(None, width)
22975 self.width_nsprefix_ = None
22976 self.height = _cast(None, height)
22977 self.height_nsprefix_ = None
22978 self.caption = _cast(None, caption)
22979 self.caption_nsprefix_ = None
22980 self.engine = _cast(None, engine)
22981 self.engine_nsprefix_ = None
22982 if ulink is None:
22983 self.ulink = []
22984 else:
22985 self.ulink = ulink
22986 self.ulink_nsprefix_ = None
22987 if bold is None:
22988 self.bold = []
22989 else:
22990 self.bold = bold
22991 self.bold_nsprefix_ = None
22992 if s is None:
22993 self.s = []
22994 else:
22995 self.s = s
22996 self.s_nsprefix_ = None
22997 if strike is None:
22998 self.strike = []
22999 else:
23000 self.strike = strike
23001 self.strike_nsprefix_ = None
23002 if underline is None:
23003 self.underline = []
23004 else:
23005 self.underline = underline
23006 self.underline_nsprefix_ = None
23007 if emphasis is None:
23008 self.emphasis = []
23009 else:
23010 self.emphasis = emphasis
23011 self.emphasis_nsprefix_ = None
23012 if computeroutput is None:
23013 self.computeroutput = []
23014 else:
23015 self.computeroutput = computeroutput
23016 self.computeroutput_nsprefix_ = None
23017 if subscript is None:
23018 self.subscript = []
23019 else:
23020 self.subscript = subscript
23021 self.subscript_nsprefix_ = None
23022 if superscript is None:
23023 self.superscript = []
23024 else:
23025 self.superscript = superscript
23026 self.superscript_nsprefix_ = None
23027 if center is None:
23028 self.center = []
23029 else:
23030 self.center = center
23031 self.center_nsprefix_ = None
23032 if small is None:
23033 self.small = []
23034 else:
23035 self.small = small
23036 self.small_nsprefix_ = None
23037 if cite is None:
23038 self.cite = []
23039 else:
23040 self.cite = cite
23041 self.cite_nsprefix_ = None
23042 if del_ is None:
23043 self.del_ = []
23044 else:
23045 self.del_ = del_
23046 self.del__nsprefix_ = None
23047 if ins is None:
23048 self.ins = []
23049 else:
23050 self.ins = ins
23051 self.ins_nsprefix_ = None
23052 if htmlonly is None:
23053 self.htmlonly = []
23054 else:
23055 self.htmlonly = htmlonly
23056 self.htmlonly_nsprefix_ = None
23057 if manonly is None:
23058 self.manonly = []
23059 else:
23060 self.manonly = manonly
23061 self.manonly_nsprefix_ = None
23062 if xmlonly is None:
23063 self.xmlonly = []
23064 else:
23065 self.xmlonly = xmlonly
23066 self.xmlonly_nsprefix_ = None
23067 if rtfonly is None:
23068 self.rtfonly = []
23069 else:
23070 self.rtfonly = rtfonly
23071 self.rtfonly_nsprefix_ = None
23072 if latexonly is None:
23073 self.latexonly = []
23074 else:
23075 self.latexonly = latexonly
23076 self.latexonly_nsprefix_ = None
23077 if docbookonly is None:
23078 self.docbookonly = []
23079 else:
23080 self.docbookonly = docbookonly
23081 self.docbookonly_nsprefix_ = None
23082 if image is None:
23083 self.image = []
23084 else:
23085 self.image = image
23086 self.image_nsprefix_ = None
23087 if dot is None:
23088 self.dot = []
23089 else:
23090 self.dot = dot
23091 self.dot_nsprefix_ = None
23092 if msc is None:
23093 self.msc = []
23094 else:
23095 self.msc = msc
23096 self.msc_nsprefix_ = None
23097 if plantuml is None:
23098 self.plantuml = []
23099 else:
23100 self.plantuml = plantuml
23101 self.plantuml_nsprefix_ = None
23102 if anchor is None:
23103 self.anchor = []
23104 else:
23105 self.anchor = anchor
23106 self.anchor_nsprefix_ = None
23107 if formula is None:
23108 self.formula = []
23109 else:
23110 self.formula = formula
23111 self.formula_nsprefix_ = None
23112 if ref is None:
23113 self.ref = []
23114 else:
23115 self.ref = ref
23116 self.ref_nsprefix_ = None
23117 if emoji is None:
23118 self.emoji = []
23119 else:
23120 self.emoji = emoji
23121 self.emoji_nsprefix_ = None
23122 if linebreak is None:
23123 self.linebreak = []
23124 else:
23125 self.linebreak = linebreak
23126 self.linebreak_nsprefix_ = None
23127 self.valueOf_ = valueOf_
23128 if mixedclass_ is None:
23129 self.mixedclass_ = MixedContainer
23130 else:
23131 self.mixedclass_ = mixedclass_
23132 if content_ is None:
23133 self.content_ = []
23134 else:
23135 self.content_ = content_
23136 self.valueOf_ = valueOf_
23137 def factory(*args_, **kwargs_):
23138 if CurrentSubclassModule_ is not None:
23139 subclass = getSubclassFromModule_(
23140 CurrentSubclassModule_, docPlantumlType)
23141 if subclass is not None:
23142 return subclass(*args_, **kwargs_)
23143 if docPlantumlType.subclass:
23144 return docPlantumlType.subclass(*args_, **kwargs_)
23145 else:
23146 return docPlantumlType(*args_, **kwargs_)
23147 factory = staticmethod(factory)
23149 return self.ns_prefix_
23150 def set_ns_prefix_(self, ns_prefix):
23151 self.ns_prefix_ = ns_prefix
23152 def get_ulink(self):
23153 return self.ulink
23154 def set_ulink(self, ulink):
23155 self.ulink = ulink
23156 def add_ulink(self, value):
23157 self.ulink.append(value)
23158 def insert_ulink_at(self, index, value):
23159 self.ulink.insert(index, value)
23160 def replace_ulink_at(self, index, value):
23161 self.ulink[index] = value
23162 def get_bold(self):
23163 return self.bold
23164 def set_bold(self, bold):
23165 self.bold = bold
23166 def add_bold(self, value):
23167 self.bold.append(value)
23168 def insert_bold_at(self, index, value):
23169 self.bold.insert(index, value)
23170 def replace_bold_at(self, index, value):
23171 self.bold[index] = value
23172 def get_s(self):
23173 return self.s
23174 def set_s(self, s):
23175 self.s = s
23176 def add_s(self, value):
23177 self.s.append(value)
23178 def insert_s_at(self, index, value):
23179 self.s.insert(index, value)
23180 def replace_s_at(self, index, value):
23181 self.s[index] = value
23182 def get_strike(self):
23183 return self.strike
23184 def set_strike(self, strike):
23185 self.strike = strike
23186 def add_strike(self, value):
23187 self.strike.append(value)
23188 def insert_strike_at(self, index, value):
23189 self.strike.insert(index, value)
23190 def replace_strike_at(self, index, value):
23191 self.strike[index] = value
23192 def get_underline(self):
23193 return self.underline
23194 def set_underline(self, underline):
23195 self.underline = underline
23196 def add_underline(self, value):
23197 self.underline.append(value)
23198 def insert_underline_at(self, index, value):
23199 self.underline.insert(index, value)
23200 def replace_underline_at(self, index, value):
23201 self.underline[index] = value
23202 def get_emphasis(self):
23203 return self.emphasis
23204 def set_emphasis(self, emphasis):
23205 self.emphasis = emphasis
23206 def add_emphasis(self, value):
23207 self.emphasis.append(value)
23208 def insert_emphasis_at(self, index, value):
23209 self.emphasis.insert(index, value)
23210 def replace_emphasis_at(self, index, value):
23211 self.emphasis[index] = value
23213 return self.computeroutput
23214 def set_computeroutput(self, computeroutput):
23215 self.computeroutput = computeroutput
23216 def add_computeroutput(self, value):
23217 self.computeroutput.append(value)
23218 def insert_computeroutput_at(self, index, value):
23219 self.computeroutput.insert(index, value)
23220 def replace_computeroutput_at(self, index, value):
23221 self.computeroutput[index] = value
23222 def get_subscript(self):
23223 return self.subscript
23224 def set_subscript(self, subscript):
23225 self.subscript = subscript
23226 def add_subscript(self, value):
23227 self.subscript.append(value)
23228 def insert_subscript_at(self, index, value):
23229 self.subscript.insert(index, value)
23230 def replace_subscript_at(self, index, value):
23231 self.subscript[index] = value
23233 return self.superscript
23234 def set_superscript(self, superscript):
23235 self.superscript = superscript
23236 def add_superscript(self, value):
23237 self.superscript.append(value)
23238 def insert_superscript_at(self, index, value):
23239 self.superscript.insert(index, value)
23240 def replace_superscript_at(self, index, value):
23241 self.superscript[index] = value
23242 def get_center(self):
23243 return self.center
23244 def set_center(self, center):
23245 self.center = center
23246 def add_center(self, value):
23247 self.center.append(value)
23248 def insert_center_at(self, index, value):
23249 self.center.insert(index, value)
23250 def replace_center_at(self, index, value):
23251 self.center[index] = value
23252 def get_small(self):
23253 return self.small
23254 def set_small(self, small):
23255 self.small = small
23256 def add_small(self, value):
23257 self.small.append(value)
23258 def insert_small_at(self, index, value):
23259 self.small.insert(index, value)
23260 def replace_small_at(self, index, value):
23261 self.small[index] = value
23262 def get_cite(self):
23263 return self.cite
23264 def set_cite(self, cite):
23265 self.cite = cite
23266 def add_cite(self, value):
23267 self.cite.append(value)
23268 def insert_cite_at(self, index, value):
23269 self.cite.insert(index, value)
23270 def replace_cite_at(self, index, value):
23271 self.cite[index] = value
23272 def get_del(self):
23273 return self.del_
23274 def set_del(self, del_):
23275 self.del_ = del_
23276 def add_del(self, value):
23277 self.del_.append(value)
23278 def insert_del_at(self, index, value):
23279 self.del_.insert(index, value)
23280 def replace_del_at(self, index, value):
23281 self.del_[index] = value
23282 def get_ins(self):
23283 return self.ins
23284 def set_ins(self, ins):
23285 self.ins = ins
23286 def add_ins(self, value):
23287 self.ins.append(value)
23288 def insert_ins_at(self, index, value):
23289 self.ins.insert(index, value)
23290 def replace_ins_at(self, index, value):
23291 self.ins[index] = value
23292 def get_htmlonly(self):
23293 return self.htmlonly
23294 def set_htmlonly(self, htmlonly):
23295 self.htmlonly = htmlonly
23296 def add_htmlonly(self, value):
23297 self.htmlonly.append(value)
23298 def insert_htmlonly_at(self, index, value):
23299 self.htmlonly.insert(index, value)
23300 def replace_htmlonly_at(self, index, value):
23301 self.htmlonly[index] = value
23302 def get_manonly(self):
23303 return self.manonly
23304 def set_manonly(self, manonly):
23305 self.manonly = manonly
23306 def add_manonly(self, value):
23307 self.manonly.append(value)
23308 def insert_manonly_at(self, index, value):
23309 self.manonly.insert(index, value)
23310 def replace_manonly_at(self, index, value):
23311 self.manonly[index] = value
23312 def get_xmlonly(self):
23313 return self.xmlonly
23314 def set_xmlonly(self, xmlonly):
23315 self.xmlonly = xmlonly
23316 def add_xmlonly(self, value):
23317 self.xmlonly.append(value)
23318 def insert_xmlonly_at(self, index, value):
23319 self.xmlonly.insert(index, value)
23320 def replace_xmlonly_at(self, index, value):
23321 self.xmlonly[index] = value
23322 def get_rtfonly(self):
23323 return self.rtfonly
23324 def set_rtfonly(self, rtfonly):
23325 self.rtfonly = rtfonly
23326 def add_rtfonly(self, value):
23327 self.rtfonly.append(value)
23328 def insert_rtfonly_at(self, index, value):
23329 self.rtfonly.insert(index, value)
23330 def replace_rtfonly_at(self, index, value):
23331 self.rtfonly[index] = value
23332 def get_latexonly(self):
23333 return self.latexonly
23334 def set_latexonly(self, latexonly):
23335 self.latexonly = latexonly
23336 def add_latexonly(self, value):
23337 self.latexonly.append(value)
23338 def insert_latexonly_at(self, index, value):
23339 self.latexonly.insert(index, value)
23340 def replace_latexonly_at(self, index, value):
23341 self.latexonly[index] = value
23343 return self.docbookonly
23344 def set_docbookonly(self, docbookonly):
23345 self.docbookonly = docbookonly
23346 def add_docbookonly(self, value):
23347 self.docbookonly.append(value)
23348 def insert_docbookonly_at(self, index, value):
23349 self.docbookonly.insert(index, value)
23350 def replace_docbookonly_at(self, index, value):
23351 self.docbookonly[index] = value
23352 def get_image(self):
23353 return self.image
23354 def set_image(self, image):
23355 self.image = image
23356 def add_image(self, value):
23357 self.image.append(value)
23358 def insert_image_at(self, index, value):
23359 self.image.insert(index, value)
23360 def replace_image_at(self, index, value):
23361 self.image[index] = value
23362 def get_dot(self):
23363 return self.dot
23364 def set_dot(self, dot):
23365 self.dot = dot
23366 def add_dot(self, value):
23367 self.dot.append(value)
23368 def insert_dot_at(self, index, value):
23369 self.dot.insert(index, value)
23370 def replace_dot_at(self, index, value):
23371 self.dot[index] = value
23372 def get_msc(self):
23373 return self.msc
23374 def set_msc(self, msc):
23375 self.msc = msc
23376 def add_msc(self, value):
23377 self.msc.append(value)
23378 def insert_msc_at(self, index, value):
23379 self.msc.insert(index, value)
23380 def replace_msc_at(self, index, value):
23381 self.msc[index] = value
23382 def get_plantuml(self):
23383 return self.plantuml
23384 def set_plantuml(self, plantuml):
23385 self.plantuml = plantuml
23386 def add_plantuml(self, value):
23387 self.plantuml.append(value)
23388 def insert_plantuml_at(self, index, value):
23389 self.plantuml.insert(index, value)
23390 def replace_plantuml_at(self, index, value):
23391 self.plantuml[index] = value
23392 def get_anchor(self):
23393 return self.anchor
23394 def set_anchor(self, anchor):
23395 self.anchor = anchor
23396 def add_anchor(self, value):
23397 self.anchor.append(value)
23398 def insert_anchor_at(self, index, value):
23399 self.anchor.insert(index, value)
23400 def replace_anchor_at(self, index, value):
23401 self.anchor[index] = value
23402 def get_formula(self):
23403 return self.formula
23404 def set_formula(self, formula):
23405 self.formula = formula
23406 def add_formula(self, value):
23407 self.formula.append(value)
23408 def insert_formula_at(self, index, value):
23409 self.formula.insert(index, value)
23410 def replace_formula_at(self, index, value):
23411 self.formula[index] = value
23412 def get_ref(self):
23413 return self.ref
23414 def set_ref(self, ref):
23415 self.ref = ref
23416 def add_ref(self, value):
23417 self.ref.append(value)
23418 def insert_ref_at(self, index, value):
23419 self.ref.insert(index, value)
23420 def replace_ref_at(self, index, value):
23421 self.ref[index] = value
23422 def get_emoji(self):
23423 return self.emoji
23424 def set_emoji(self, emoji):
23425 self.emoji = emoji
23426 def add_emoji(self, value):
23427 self.emoji.append(value)
23428 def insert_emoji_at(self, index, value):
23429 self.emoji.insert(index, value)
23430 def replace_emoji_at(self, index, value):
23431 self.emoji[index] = value
23432 def get_linebreak(self):
23433 return self.linebreak
23434 def set_linebreak(self, linebreak):
23435 self.linebreak = linebreak
23436 def add_linebreak(self, value):
23437 self.linebreak.append(value)
23438 def insert_linebreak_at(self, index, value):
23439 self.linebreak.insert(index, value)
23440 def replace_linebreak_at(self, index, value):
23441 self.linebreak[index] = value
23442 def get_name(self):
23443 return self.name
23444 def set_name(self, name):
23445 self.name = name
23446 def get_width(self):
23447 return self.width
23448 def set_width(self, width):
23449 self.width = width
23450 def get_height(self):
23451 return self.height
23452 def set_height(self, height):
23453 self.height = height
23454 def get_caption(self):
23455 return self.caption
23456 def set_caption(self, caption):
23457 self.caption = caption
23458 def get_engine(self):
23459 return self.engine
23460 def set_engine(self, engine):
23461 self.engine = engine
23462 def get_valueOf_(self): return self.valueOf_
23463 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
23465 # Validate type DoxPlantumlEngine, a restriction on xsd:string.
23466 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
23467 if not isinstance(value, str):
23469 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
23470 return False
23471 value = value
23472 enumerations = ['uml', 'bpm', 'wire', 'dot', 'ditaa', 'salt', 'math', 'latex', 'gantt', 'mindmap', 'wbs', 'yaml', 'creole', 'json', 'flow', 'board', 'git']
23473 if value not in enumerations:
23475 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxPlantumlEngine' % {"value" : encode_str_2_3(value), "lineno": lineno} )
23476 result = False
23477 def hasContent_(self):
23478 if (
23479 self.ulink or
23480 self.bold or
23481 self.s or
23482 self.strike or
23483 self.underline or
23484 self.emphasis or
23485 self.computeroutput or
23486 self.subscript or
23487 self.superscript or
23488 self.center or
23489 self.small or
23490 self.cite or
23491 self.del_ or
23492 self.ins or
23493 self.htmlonly or
23494 self.manonly or
23495 self.xmlonly or
23496 self.rtfonly or
23497 self.latexonly or
23498 self.docbookonly or
23499 self.image or
23500 self.dot or
23501 self.msc or
23502 self.plantuml or
23503 self.anchor or
23504 self.formula or
23505 self.ref or
23506 self.emoji or
23507 self.linebreak or
23508 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
23509 self.content_
23510 ):
23511 return True
23512 else:
23513 return False
23514 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docPlantumlType', pretty_print=True):
23515 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docPlantumlType')
23516 if imported_ns_def_ is not None:
23517 namespacedef_ = imported_ns_def_
23518 if pretty_print:
23519 eol_ = '\n'
23520 else:
23521 eol_ = ''
23522 if self.original_tagname_ is not None and name_ == 'docPlantumlType':
23523 name_ = self.original_tagname_
23524 if UseCapturedNS_ and self.ns_prefix_:
23525 namespaceprefix_ = self.ns_prefix_ + ':'
23526 showIndent(outfile, level, pretty_print)
23527 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
23528 already_processed = set()
23529 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docPlantumlType')
23530 if self.hasContent_hasContent_():
23531 outfile.write('>%s' % (eol_, ))
23532 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docPlantumlType', pretty_print=pretty_print)
23533 showIndent(outfile, level, pretty_print)
23534 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
23535 else:
23536 outfile.write('/>%s' % (eol_, ))
23537 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docPlantumlType'):
23538 if self.name is not None and 'name' not in already_processed:
23539 already_processed.add('name')
23540 outfile.write(' name=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.name), input_name='name')), ))
23541 if self.width is not None and 'width' not in already_processed:
23542 already_processed.add('width')
23543 outfile.write(' width=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.width), input_name='width')), ))
23544 if self.height is not None and 'height' not in already_processed:
23545 already_processed.add('height')
23546 outfile.write(' height=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.height), input_name='height')), ))
23547 if self.caption is not None and 'caption' not in already_processed:
23548 already_processed.add('caption')
23549 outfile.write(' caption=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.caption), input_name='caption')), ))
23550 if self.engine is not None and 'engine' not in already_processed:
23551 already_processed.add('engine')
23552 outfile.write(' engine=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.engine), input_name='engine')), ))
23553 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docPlantumlType', fromsubclass_=False, pretty_print=True):
23554 if not fromsubclass_:
23555 for item_ in self.content_:
23556 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
23557 if pretty_print:
23558 eol_ = '\n'
23559 else:
23560 eol_ = ''
23561 for ulink_ in self.ulink:
23562 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
23563 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
23564 for bold_ in self.bold:
23565 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
23566 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
23567 for s_ in self.s:
23568 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
23569 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
23570 for strike_ in self.strike:
23571 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
23572 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
23573 for underline_ in self.underline:
23574 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
23575 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
23576 for emphasis_ in self.emphasis:
23577 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
23578 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
23579 for computeroutput_ in self.computeroutput:
23580 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
23581 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
23582 for subscript_ in self.subscript:
23583 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
23584 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
23585 for superscript_ in self.superscript:
23586 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
23587 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
23588 for center_ in self.center:
23589 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
23590 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
23591 for small_ in self.small:
23592 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
23593 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
23594 for cite_ in self.cite:
23595 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
23596 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
23597 for del_ in self.del_:
23598 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
23599 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
23600 for ins_ in self.ins:
23601 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
23602 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
23603 for htmlonly_ in self.htmlonly:
23604 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
23605 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
23606 for manonly_ in self.manonly:
23607 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
23608 showIndent(outfile, level, pretty_print)
23609 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
23610 for xmlonly_ in self.xmlonly:
23611 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
23612 showIndent(outfile, level, pretty_print)
23613 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
23614 for rtfonly_ in self.rtfonly:
23615 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
23616 showIndent(outfile, level, pretty_print)
23617 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
23618 for latexonly_ in self.latexonly:
23619 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
23620 showIndent(outfile, level, pretty_print)
23621 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
23622 for docbookonly_ in self.docbookonly:
23623 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
23624 showIndent(outfile, level, pretty_print)
23625 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
23626 for image_ in self.image:
23627 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
23628 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
23629 for dot_ in self.dot:
23630 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
23631 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
23632 for msc_ in self.msc:
23633 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
23634 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
23635 for plantuml_ in self.plantuml:
23636 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
23637 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
23638 for anchor_ in self.anchor:
23639 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
23640 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
23641 for formula_ in self.formula:
23642 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
23643 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
23644 for ref_ in self.ref:
23645 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
23646 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
23647 for emoji_ in self.emoji:
23648 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
23649 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
23650 for linebreak_ in self.linebreak:
23651 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
23652 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
23653 def build(self, node, gds_collector_=None):
23654 self.gds_collector_ = gds_collector_
23655 if SaveElementTreeNode:
23656 self.gds_elementtree_node_ = node
23657 already_processed = set()
23658 self.ns_prefix_ = node.prefix
23659 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
23660 self.valueOf_ = get_all_text_(node)
23661 if node.text is not None:
23662 obj_ = self.mixedclass_(MixedContainer.CategoryText,
23663 MixedContainer.TypeNone, '', node.text)
23664 self.content_.append(obj_)
23665 for child in node:
23666 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
23667 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
23668 return self
23669 def buildAttributes(self, node, attrs, already_processed):
23670 value = find_attr_value_('name', node)
23671 if value is not None and 'name' not in already_processed:
23672 already_processed.add('name')
23673 self.name = value
23674 value = find_attr_value_('width', node)
23675 if value is not None and 'width' not in already_processed:
23676 already_processed.add('width')
23677 self.width = value
23678 value = find_attr_value_('height', node)
23679 if value is not None and 'height' not in already_processed:
23680 already_processed.add('height')
23681 self.height = value
23682 value = find_attr_value_('caption', node)
23683 if value is not None and 'caption' not in already_processed:
23684 already_processed.add('caption')
23685 self.caption = value
23686 value = find_attr_value_('engine', node)
23687 if value is not None and 'engine' not in already_processed:
23688 already_processed.add('engine')
23689 self.engine = value
23690 self.validate_DoxPlantumlEnginevalidate_DoxPlantumlEngine(self.engine) # validate type DoxPlantumlEngine
23691 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
23692 if nodeName_ == 'ulink':
23693 obj_ = docURLLink.factory(parent_object_=self)
23694 obj_.build(child_, gds_collector_=gds_collector_)
23695 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23696 MixedContainer.TypeNone, 'ulink', obj_)
23697 self.content_.append(obj_)
23698 if hasattr(self, 'add_ulink'):
23699 self.add_ulinkadd_ulink(obj_.value)
23700 elif hasattr(self, 'set_ulink'):
23701 self.set_ulinkset_ulink(obj_.value)
23702 elif nodeName_ == 'bold':
23703 obj_ = docMarkupType.factory(parent_object_=self)
23704 obj_.build(child_, gds_collector_=gds_collector_)
23705 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23706 MixedContainer.TypeNone, 'bold', obj_)
23707 self.content_.append(obj_)
23708 if hasattr(self, 'add_bold'):
23709 self.add_boldadd_bold(obj_.value)
23710 elif hasattr(self, 'set_bold'):
23711 self.set_boldset_bold(obj_.value)
23712 elif nodeName_ == 's':
23713 obj_ = docMarkupType.factory(parent_object_=self)
23714 obj_.build(child_, gds_collector_=gds_collector_)
23715 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23716 MixedContainer.TypeNone, 's', obj_)
23717 self.content_.append(obj_)
23718 if hasattr(self, 'add_s'):
23719 self.add_sadd_s(obj_.value)
23720 elif hasattr(self, 'set_s'):
23721 self.set_sset_s(obj_.value)
23722 elif nodeName_ == 'strike':
23723 obj_ = docMarkupType.factory(parent_object_=self)
23724 obj_.build(child_, gds_collector_=gds_collector_)
23725 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23726 MixedContainer.TypeNone, 'strike', obj_)
23727 self.content_.append(obj_)
23728 if hasattr(self, 'add_strike'):
23729 self.add_strikeadd_strike(obj_.value)
23730 elif hasattr(self, 'set_strike'):
23731 self.set_strikeset_strike(obj_.value)
23732 elif nodeName_ == 'underline':
23733 obj_ = docMarkupType.factory(parent_object_=self)
23734 obj_.build(child_, gds_collector_=gds_collector_)
23735 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23736 MixedContainer.TypeNone, 'underline', obj_)
23737 self.content_.append(obj_)
23738 if hasattr(self, 'add_underline'):
23739 self.add_underlineadd_underline(obj_.value)
23740 elif hasattr(self, 'set_underline'):
23741 self.set_underlineset_underline(obj_.value)
23742 elif nodeName_ == 'emphasis':
23743 obj_ = docMarkupType.factory(parent_object_=self)
23744 obj_.build(child_, gds_collector_=gds_collector_)
23745 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23746 MixedContainer.TypeNone, 'emphasis', obj_)
23747 self.content_.append(obj_)
23748 if hasattr(self, 'add_emphasis'):
23749 self.add_emphasisadd_emphasis(obj_.value)
23750 elif hasattr(self, 'set_emphasis'):
23751 self.set_emphasisset_emphasis(obj_.value)
23752 elif nodeName_ == 'computeroutput':
23753 obj_ = docMarkupType.factory(parent_object_=self)
23754 obj_.build(child_, gds_collector_=gds_collector_)
23755 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23756 MixedContainer.TypeNone, 'computeroutput', obj_)
23757 self.content_.append(obj_)
23758 if hasattr(self, 'add_computeroutput'):
23760 elif hasattr(self, 'set_computeroutput'):
23762 elif nodeName_ == 'subscript':
23763 obj_ = docMarkupType.factory(parent_object_=self)
23764 obj_.build(child_, gds_collector_=gds_collector_)
23765 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23766 MixedContainer.TypeNone, 'subscript', obj_)
23767 self.content_.append(obj_)
23768 if hasattr(self, 'add_subscript'):
23769 self.add_subscriptadd_subscript(obj_.value)
23770 elif hasattr(self, 'set_subscript'):
23771 self.set_subscriptset_subscript(obj_.value)
23772 elif nodeName_ == 'superscript':
23773 obj_ = docMarkupType.factory(parent_object_=self)
23774 obj_.build(child_, gds_collector_=gds_collector_)
23775 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23776 MixedContainer.TypeNone, 'superscript', obj_)
23777 self.content_.append(obj_)
23778 if hasattr(self, 'add_superscript'):
23779 self.add_superscriptadd_superscript(obj_.value)
23780 elif hasattr(self, 'set_superscript'):
23781 self.set_superscriptset_superscript(obj_.value)
23782 elif nodeName_ == 'center':
23783 obj_ = docMarkupType.factory(parent_object_=self)
23784 obj_.build(child_, gds_collector_=gds_collector_)
23785 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23786 MixedContainer.TypeNone, 'center', obj_)
23787 self.content_.append(obj_)
23788 if hasattr(self, 'add_center'):
23789 self.add_centeradd_center(obj_.value)
23790 elif hasattr(self, 'set_center'):
23791 self.set_centerset_center(obj_.value)
23792 elif nodeName_ == 'small':
23793 obj_ = docMarkupType.factory(parent_object_=self)
23794 obj_.build(child_, gds_collector_=gds_collector_)
23795 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23796 MixedContainer.TypeNone, 'small', obj_)
23797 self.content_.append(obj_)
23798 if hasattr(self, 'add_small'):
23799 self.add_smalladd_small(obj_.value)
23800 elif hasattr(self, 'set_small'):
23801 self.set_smallset_small(obj_.value)
23802 elif nodeName_ == 'cite':
23803 obj_ = docMarkupType.factory(parent_object_=self)
23804 obj_.build(child_, gds_collector_=gds_collector_)
23805 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23806 MixedContainer.TypeNone, 'cite', obj_)
23807 self.content_.append(obj_)
23808 if hasattr(self, 'add_cite'):
23809 self.add_citeadd_cite(obj_.value)
23810 elif hasattr(self, 'set_cite'):
23811 self.set_citeset_cite(obj_.value)
23812 elif nodeName_ == 'del':
23813 obj_ = docMarkupType.factory(parent_object_=self)
23814 obj_.build(child_, gds_collector_=gds_collector_)
23815 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23816 MixedContainer.TypeNone, 'del', obj_)
23817 self.content_.append(obj_)
23818 if hasattr(self, 'add_del'):
23819 self.add_deladd_del(obj_.value)
23820 elif hasattr(self, 'set_del'):
23821 self.set_delset_del(obj_.value)
23822 elif nodeName_ == 'ins':
23823 obj_ = docMarkupType.factory(parent_object_=self)
23824 obj_.build(child_, gds_collector_=gds_collector_)
23825 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23826 MixedContainer.TypeNone, 'ins', obj_)
23827 self.content_.append(obj_)
23828 if hasattr(self, 'add_ins'):
23829 self.add_insadd_ins(obj_.value)
23830 elif hasattr(self, 'set_ins'):
23831 self.set_insset_ins(obj_.value)
23832 elif nodeName_ == 'htmlonly':
23833 obj_ = docHtmlOnlyType.factory(parent_object_=self)
23834 obj_.build(child_, gds_collector_=gds_collector_)
23835 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23836 MixedContainer.TypeNone, 'htmlonly', obj_)
23837 self.content_.append(obj_)
23838 if hasattr(self, 'add_htmlonly'):
23839 self.add_htmlonlyadd_htmlonly(obj_.value)
23840 elif hasattr(self, 'set_htmlonly'):
23841 self.set_htmlonlyset_htmlonly(obj_.value)
23842 elif nodeName_ == 'manonly' and child_.text is not None:
23843 valuestr_ = child_.text
23844 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
23845 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
23846 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
23847 MixedContainer.TypeString, 'manonly', valuestr_)
23848 self.content_.append(obj_)
23849 self.manonly_nsprefix_ = child_.prefix
23850 elif nodeName_ == 'xmlonly' and child_.text is not None:
23851 valuestr_ = child_.text
23852 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
23853 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
23854 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
23855 MixedContainer.TypeString, 'xmlonly', valuestr_)
23856 self.content_.append(obj_)
23857 self.xmlonly_nsprefix_ = child_.prefix
23858 elif nodeName_ == 'rtfonly' and child_.text is not None:
23859 valuestr_ = child_.text
23860 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
23861 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
23862 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
23863 MixedContainer.TypeString, 'rtfonly', valuestr_)
23864 self.content_.append(obj_)
23865 self.rtfonly_nsprefix_ = child_.prefix
23866 elif nodeName_ == 'latexonly' and child_.text is not None:
23867 valuestr_ = child_.text
23868 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
23869 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
23870 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
23871 MixedContainer.TypeString, 'latexonly', valuestr_)
23872 self.content_.append(obj_)
23873 self.latexonly_nsprefix_ = child_.prefix
23874 elif nodeName_ == 'docbookonly' and child_.text is not None:
23875 valuestr_ = child_.text
23876 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
23877 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
23878 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
23879 MixedContainer.TypeString, 'docbookonly', valuestr_)
23880 self.content_.append(obj_)
23881 self.docbookonly_nsprefix_ = child_.prefix
23882 elif nodeName_ == 'image':
23883 obj_ = docImageType.factory(parent_object_=self)
23884 obj_.build(child_, gds_collector_=gds_collector_)
23885 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23886 MixedContainer.TypeNone, 'image', obj_)
23887 self.content_.append(obj_)
23888 if hasattr(self, 'add_image'):
23889 self.add_imageadd_image(obj_.value)
23890 elif hasattr(self, 'set_image'):
23891 self.set_imageset_image(obj_.value)
23892 elif nodeName_ == 'dot':
23893 obj_ = docDotMscType.factory(parent_object_=self)
23894 obj_.build(child_, gds_collector_=gds_collector_)
23895 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23896 MixedContainer.TypeNone, 'dot', obj_)
23897 self.content_.append(obj_)
23898 if hasattr(self, 'add_dot'):
23899 self.add_dotadd_dot(obj_.value)
23900 elif hasattr(self, 'set_dot'):
23901 self.set_dotset_dot(obj_.value)
23902 elif nodeName_ == 'msc':
23903 obj_ = docDotMscType.factory(parent_object_=self)
23904 obj_.build(child_, gds_collector_=gds_collector_)
23905 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23906 MixedContainer.TypeNone, 'msc', obj_)
23907 self.content_.append(obj_)
23908 if hasattr(self, 'add_msc'):
23909 self.add_mscadd_msc(obj_.value)
23910 elif hasattr(self, 'set_msc'):
23911 self.set_mscset_msc(obj_.value)
23912 elif nodeName_ == 'plantuml':
23913 obj_ = docPlantumlType.factory(parent_object_=self)
23914 obj_.build(child_, gds_collector_=gds_collector_)
23915 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23916 MixedContainer.TypeNone, 'plantuml', obj_)
23917 self.content_.append(obj_)
23918 if hasattr(self, 'add_plantuml'):
23919 self.add_plantumladd_plantuml(obj_.value)
23920 elif hasattr(self, 'set_plantuml'):
23921 self.set_plantumlset_plantuml(obj_.value)
23922 elif nodeName_ == 'anchor':
23923 obj_ = docAnchorType.factory(parent_object_=self)
23924 obj_.build(child_, gds_collector_=gds_collector_)
23925 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23926 MixedContainer.TypeNone, 'anchor', obj_)
23927 self.content_.append(obj_)
23928 if hasattr(self, 'add_anchor'):
23929 self.add_anchoradd_anchor(obj_.value)
23930 elif hasattr(self, 'set_anchor'):
23931 self.set_anchorset_anchor(obj_.value)
23932 elif nodeName_ == 'formula':
23933 obj_ = docFormulaType.factory(parent_object_=self)
23934 obj_.build(child_, gds_collector_=gds_collector_)
23935 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23936 MixedContainer.TypeNone, 'formula', obj_)
23937 self.content_.append(obj_)
23938 if hasattr(self, 'add_formula'):
23939 self.add_formulaadd_formula(obj_.value)
23940 elif hasattr(self, 'set_formula'):
23941 self.set_formulaset_formula(obj_.value)
23942 elif nodeName_ == 'ref':
23943 obj_ = docRefTextType.factory(parent_object_=self)
23944 obj_.build(child_, gds_collector_=gds_collector_)
23945 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23946 MixedContainer.TypeNone, 'ref', obj_)
23947 self.content_.append(obj_)
23948 if hasattr(self, 'add_ref'):
23949 self.add_refadd_ref(obj_.value)
23950 elif hasattr(self, 'set_ref'):
23951 self.set_refset_ref(obj_.value)
23952 elif nodeName_ == 'emoji':
23953 obj_ = docEmojiType.factory(parent_object_=self)
23954 obj_.build(child_, gds_collector_=gds_collector_)
23955 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23956 MixedContainer.TypeNone, 'emoji', obj_)
23957 self.content_.append(obj_)
23958 if hasattr(self, 'add_emoji'):
23959 self.add_emojiadd_emoji(obj_.value)
23960 elif hasattr(self, 'set_emoji'):
23961 self.set_emojiset_emoji(obj_.value)
23962 elif nodeName_ == 'linebreak':
23963 obj_ = docEmptyType.factory(parent_object_=self)
23964 obj_.build(child_, gds_collector_=gds_collector_)
23965 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
23966 MixedContainer.TypeNone, 'linebreak', obj_)
23967 self.content_.append(obj_)
23968 if hasattr(self, 'add_linebreak'):
23969 self.add_linebreakadd_linebreak(obj_.value)
23970 elif hasattr(self, 'set_linebreak'):
23971 self.set_linebreakset_linebreak(obj_.value)
23972 if not fromsubclass_ and child_.tail is not None:
23973 obj_ = self.mixedclass_(MixedContainer.CategoryText,
23974 MixedContainer.TypeNone, '', child_.tail)
23975 self.content_.append(obj_)
23976# end class docPlantumlType
23977
23978
23980 __hash__ = GeneratedsSuper.__hash__
23981 subclass = None
23982 superclass = None
23983 def __init__(self, id=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
23984 self.gds_collector_ = gds_collector_
23985 self.gds_elementtree_node_ = None
23986 self.original_tagname_ = None
23987 self.parent_object_ = kwargs_.get('parent_object_')
23988 self.ns_prefix_ = None
23989 self.id = _cast(None, id)
23990 self.id_nsprefix_ = None
23991 if ulink is None:
23992 self.ulink = []
23993 else:
23994 self.ulink = ulink
23995 self.ulink_nsprefix_ = None
23996 if bold is None:
23997 self.bold = []
23998 else:
23999 self.bold = bold
24000 self.bold_nsprefix_ = None
24001 if s is None:
24002 self.s = []
24003 else:
24004 self.s = s
24005 self.s_nsprefix_ = None
24006 if strike is None:
24007 self.strike = []
24008 else:
24009 self.strike = strike
24010 self.strike_nsprefix_ = None
24011 if underline is None:
24012 self.underline = []
24013 else:
24014 self.underline = underline
24015 self.underline_nsprefix_ = None
24016 if emphasis is None:
24017 self.emphasis = []
24018 else:
24019 self.emphasis = emphasis
24020 self.emphasis_nsprefix_ = None
24021 if computeroutput is None:
24022 self.computeroutput = []
24023 else:
24024 self.computeroutput = computeroutput
24025 self.computeroutput_nsprefix_ = None
24026 if subscript is None:
24027 self.subscript = []
24028 else:
24029 self.subscript = subscript
24030 self.subscript_nsprefix_ = None
24031 if superscript is None:
24032 self.superscript = []
24033 else:
24034 self.superscript = superscript
24035 self.superscript_nsprefix_ = None
24036 if center is None:
24037 self.center = []
24038 else:
24039 self.center = center
24040 self.center_nsprefix_ = None
24041 if small is None:
24042 self.small = []
24043 else:
24044 self.small = small
24045 self.small_nsprefix_ = None
24046 if cite is None:
24047 self.cite = []
24048 else:
24049 self.cite = cite
24050 self.cite_nsprefix_ = None
24051 if del_ is None:
24052 self.del_ = []
24053 else:
24054 self.del_ = del_
24055 self.del__nsprefix_ = None
24056 if ins is None:
24057 self.ins = []
24058 else:
24059 self.ins = ins
24060 self.ins_nsprefix_ = None
24061 if htmlonly is None:
24062 self.htmlonly = []
24063 else:
24064 self.htmlonly = htmlonly
24065 self.htmlonly_nsprefix_ = None
24066 if manonly is None:
24067 self.manonly = []
24068 else:
24069 self.manonly = manonly
24070 self.manonly_nsprefix_ = None
24071 if xmlonly is None:
24072 self.xmlonly = []
24073 else:
24074 self.xmlonly = xmlonly
24075 self.xmlonly_nsprefix_ = None
24076 if rtfonly is None:
24077 self.rtfonly = []
24078 else:
24079 self.rtfonly = rtfonly
24080 self.rtfonly_nsprefix_ = None
24081 if latexonly is None:
24082 self.latexonly = []
24083 else:
24084 self.latexonly = latexonly
24085 self.latexonly_nsprefix_ = None
24086 if docbookonly is None:
24087 self.docbookonly = []
24088 else:
24089 self.docbookonly = docbookonly
24090 self.docbookonly_nsprefix_ = None
24091 if image is None:
24092 self.image = []
24093 else:
24094 self.image = image
24095 self.image_nsprefix_ = None
24096 if dot is None:
24097 self.dot = []
24098 else:
24099 self.dot = dot
24100 self.dot_nsprefix_ = None
24101 if msc is None:
24102 self.msc = []
24103 else:
24104 self.msc = msc
24105 self.msc_nsprefix_ = None
24106 if plantuml is None:
24107 self.plantuml = []
24108 else:
24109 self.plantuml = plantuml
24110 self.plantuml_nsprefix_ = None
24111 if anchor is None:
24112 self.anchor = []
24113 else:
24114 self.anchor = anchor
24115 self.anchor_nsprefix_ = None
24116 if formula is None:
24117 self.formula = []
24118 else:
24119 self.formula = formula
24120 self.formula_nsprefix_ = None
24121 if ref is None:
24122 self.ref = []
24123 else:
24124 self.ref = ref
24125 self.ref_nsprefix_ = None
24126 if emoji is None:
24127 self.emoji = []
24128 else:
24129 self.emoji = emoji
24130 self.emoji_nsprefix_ = None
24131 if linebreak is None:
24132 self.linebreak = []
24133 else:
24134 self.linebreak = linebreak
24135 self.linebreak_nsprefix_ = None
24136 self.valueOf_ = valueOf_
24137 if mixedclass_ is None:
24138 self.mixedclass_ = MixedContainer
24139 else:
24140 self.mixedclass_ = mixedclass_
24141 if content_ is None:
24142 self.content_ = []
24143 else:
24144 self.content_ = content_
24145 self.valueOf_ = valueOf_
24146 def factory(*args_, **kwargs_):
24147 if CurrentSubclassModule_ is not None:
24148 subclass = getSubclassFromModule_(
24149 CurrentSubclassModule_, docTocItemType)
24150 if subclass is not None:
24151 return subclass(*args_, **kwargs_)
24152 if docTocItemType.subclass:
24153 return docTocItemType.subclass(*args_, **kwargs_)
24154 else:
24155 return docTocItemType(*args_, **kwargs_)
24156 factory = staticmethod(factory)
24158 return self.ns_prefix_
24159 def set_ns_prefix_(self, ns_prefix):
24160 self.ns_prefix_ = ns_prefix
24161 def get_ulink(self):
24162 return self.ulink
24163 def set_ulink(self, ulink):
24164 self.ulink = ulink
24165 def add_ulink(self, value):
24166 self.ulink.append(value)
24167 def insert_ulink_at(self, index, value):
24168 self.ulink.insert(index, value)
24169 def replace_ulink_at(self, index, value):
24170 self.ulink[index] = value
24171 def get_bold(self):
24172 return self.bold
24173 def set_bold(self, bold):
24174 self.bold = bold
24175 def add_bold(self, value):
24176 self.bold.append(value)
24177 def insert_bold_at(self, index, value):
24178 self.bold.insert(index, value)
24179 def replace_bold_at(self, index, value):
24180 self.bold[index] = value
24181 def get_s(self):
24182 return self.s
24183 def set_s(self, s):
24184 self.s = s
24185 def add_s(self, value):
24186 self.s.append(value)
24187 def insert_s_at(self, index, value):
24188 self.s.insert(index, value)
24189 def replace_s_at(self, index, value):
24190 self.s[index] = value
24191 def get_strike(self):
24192 return self.strike
24193 def set_strike(self, strike):
24194 self.strike = strike
24195 def add_strike(self, value):
24196 self.strike.append(value)
24197 def insert_strike_at(self, index, value):
24198 self.strike.insert(index, value)
24199 def replace_strike_at(self, index, value):
24200 self.strike[index] = value
24201 def get_underline(self):
24202 return self.underline
24203 def set_underline(self, underline):
24204 self.underline = underline
24205 def add_underline(self, value):
24206 self.underline.append(value)
24207 def insert_underline_at(self, index, value):
24208 self.underline.insert(index, value)
24209 def replace_underline_at(self, index, value):
24210 self.underline[index] = value
24211 def get_emphasis(self):
24212 return self.emphasis
24213 def set_emphasis(self, emphasis):
24214 self.emphasis = emphasis
24215 def add_emphasis(self, value):
24216 self.emphasis.append(value)
24217 def insert_emphasis_at(self, index, value):
24218 self.emphasis.insert(index, value)
24219 def replace_emphasis_at(self, index, value):
24220 self.emphasis[index] = value
24222 return self.computeroutput
24223 def set_computeroutput(self, computeroutput):
24224 self.computeroutput = computeroutput
24225 def add_computeroutput(self, value):
24226 self.computeroutput.append(value)
24227 def insert_computeroutput_at(self, index, value):
24228 self.computeroutput.insert(index, value)
24229 def replace_computeroutput_at(self, index, value):
24230 self.computeroutput[index] = value
24231 def get_subscript(self):
24232 return self.subscript
24233 def set_subscript(self, subscript):
24234 self.subscript = subscript
24235 def add_subscript(self, value):
24236 self.subscript.append(value)
24237 def insert_subscript_at(self, index, value):
24238 self.subscript.insert(index, value)
24239 def replace_subscript_at(self, index, value):
24240 self.subscript[index] = value
24242 return self.superscript
24243 def set_superscript(self, superscript):
24244 self.superscript = superscript
24245 def add_superscript(self, value):
24246 self.superscript.append(value)
24247 def insert_superscript_at(self, index, value):
24248 self.superscript.insert(index, value)
24249 def replace_superscript_at(self, index, value):
24250 self.superscript[index] = value
24251 def get_center(self):
24252 return self.center
24253 def set_center(self, center):
24254 self.center = center
24255 def add_center(self, value):
24256 self.center.append(value)
24257 def insert_center_at(self, index, value):
24258 self.center.insert(index, value)
24259 def replace_center_at(self, index, value):
24260 self.center[index] = value
24261 def get_small(self):
24262 return self.small
24263 def set_small(self, small):
24264 self.small = small
24265 def add_small(self, value):
24266 self.small.append(value)
24267 def insert_small_at(self, index, value):
24268 self.small.insert(index, value)
24269 def replace_small_at(self, index, value):
24270 self.small[index] = value
24271 def get_cite(self):
24272 return self.cite
24273 def set_cite(self, cite):
24274 self.cite = cite
24275 def add_cite(self, value):
24276 self.cite.append(value)
24277 def insert_cite_at(self, index, value):
24278 self.cite.insert(index, value)
24279 def replace_cite_at(self, index, value):
24280 self.cite[index] = value
24281 def get_del(self):
24282 return self.del_
24283 def set_del(self, del_):
24284 self.del_ = del_
24285 def add_del(self, value):
24286 self.del_.append(value)
24287 def insert_del_at(self, index, value):
24288 self.del_.insert(index, value)
24289 def replace_del_at(self, index, value):
24290 self.del_[index] = value
24291 def get_ins(self):
24292 return self.ins
24293 def set_ins(self, ins):
24294 self.ins = ins
24295 def add_ins(self, value):
24296 self.ins.append(value)
24297 def insert_ins_at(self, index, value):
24298 self.ins.insert(index, value)
24299 def replace_ins_at(self, index, value):
24300 self.ins[index] = value
24301 def get_htmlonly(self):
24302 return self.htmlonly
24303 def set_htmlonly(self, htmlonly):
24304 self.htmlonly = htmlonly
24305 def add_htmlonly(self, value):
24306 self.htmlonly.append(value)
24307 def insert_htmlonly_at(self, index, value):
24308 self.htmlonly.insert(index, value)
24309 def replace_htmlonly_at(self, index, value):
24310 self.htmlonly[index] = value
24311 def get_manonly(self):
24312 return self.manonly
24313 def set_manonly(self, manonly):
24314 self.manonly = manonly
24315 def add_manonly(self, value):
24316 self.manonly.append(value)
24317 def insert_manonly_at(self, index, value):
24318 self.manonly.insert(index, value)
24319 def replace_manonly_at(self, index, value):
24320 self.manonly[index] = value
24321 def get_xmlonly(self):
24322 return self.xmlonly
24323 def set_xmlonly(self, xmlonly):
24324 self.xmlonly = xmlonly
24325 def add_xmlonly(self, value):
24326 self.xmlonly.append(value)
24327 def insert_xmlonly_at(self, index, value):
24328 self.xmlonly.insert(index, value)
24329 def replace_xmlonly_at(self, index, value):
24330 self.xmlonly[index] = value
24331 def get_rtfonly(self):
24332 return self.rtfonly
24333 def set_rtfonly(self, rtfonly):
24334 self.rtfonly = rtfonly
24335 def add_rtfonly(self, value):
24336 self.rtfonly.append(value)
24337 def insert_rtfonly_at(self, index, value):
24338 self.rtfonly.insert(index, value)
24339 def replace_rtfonly_at(self, index, value):
24340 self.rtfonly[index] = value
24341 def get_latexonly(self):
24342 return self.latexonly
24343 def set_latexonly(self, latexonly):
24344 self.latexonly = latexonly
24345 def add_latexonly(self, value):
24346 self.latexonly.append(value)
24347 def insert_latexonly_at(self, index, value):
24348 self.latexonly.insert(index, value)
24349 def replace_latexonly_at(self, index, value):
24350 self.latexonly[index] = value
24352 return self.docbookonly
24353 def set_docbookonly(self, docbookonly):
24354 self.docbookonly = docbookonly
24355 def add_docbookonly(self, value):
24356 self.docbookonly.append(value)
24357 def insert_docbookonly_at(self, index, value):
24358 self.docbookonly.insert(index, value)
24359 def replace_docbookonly_at(self, index, value):
24360 self.docbookonly[index] = value
24361 def get_image(self):
24362 return self.image
24363 def set_image(self, image):
24364 self.image = image
24365 def add_image(self, value):
24366 self.image.append(value)
24367 def insert_image_at(self, index, value):
24368 self.image.insert(index, value)
24369 def replace_image_at(self, index, value):
24370 self.image[index] = value
24371 def get_dot(self):
24372 return self.dot
24373 def set_dot(self, dot):
24374 self.dot = dot
24375 def add_dot(self, value):
24376 self.dot.append(value)
24377 def insert_dot_at(self, index, value):
24378 self.dot.insert(index, value)
24379 def replace_dot_at(self, index, value):
24380 self.dot[index] = value
24381 def get_msc(self):
24382 return self.msc
24383 def set_msc(self, msc):
24384 self.msc = msc
24385 def add_msc(self, value):
24386 self.msc.append(value)
24387 def insert_msc_at(self, index, value):
24388 self.msc.insert(index, value)
24389 def replace_msc_at(self, index, value):
24390 self.msc[index] = value
24391 def get_plantuml(self):
24392 return self.plantuml
24393 def set_plantuml(self, plantuml):
24394 self.plantuml = plantuml
24395 def add_plantuml(self, value):
24396 self.plantuml.append(value)
24397 def insert_plantuml_at(self, index, value):
24398 self.plantuml.insert(index, value)
24399 def replace_plantuml_at(self, index, value):
24400 self.plantuml[index] = value
24401 def get_anchor(self):
24402 return self.anchor
24403 def set_anchor(self, anchor):
24404 self.anchor = anchor
24405 def add_anchor(self, value):
24406 self.anchor.append(value)
24407 def insert_anchor_at(self, index, value):
24408 self.anchor.insert(index, value)
24409 def replace_anchor_at(self, index, value):
24410 self.anchor[index] = value
24411 def get_formula(self):
24412 return self.formula
24413 def set_formula(self, formula):
24414 self.formula = formula
24415 def add_formula(self, value):
24416 self.formula.append(value)
24417 def insert_formula_at(self, index, value):
24418 self.formula.insert(index, value)
24419 def replace_formula_at(self, index, value):
24420 self.formula[index] = value
24421 def get_ref(self):
24422 return self.ref
24423 def set_ref(self, ref):
24424 self.ref = ref
24425 def add_ref(self, value):
24426 self.ref.append(value)
24427 def insert_ref_at(self, index, value):
24428 self.ref.insert(index, value)
24429 def replace_ref_at(self, index, value):
24430 self.ref[index] = value
24431 def get_emoji(self):
24432 return self.emoji
24433 def set_emoji(self, emoji):
24434 self.emoji = emoji
24435 def add_emoji(self, value):
24436 self.emoji.append(value)
24437 def insert_emoji_at(self, index, value):
24438 self.emoji.insert(index, value)
24439 def replace_emoji_at(self, index, value):
24440 self.emoji[index] = value
24441 def get_linebreak(self):
24442 return self.linebreak
24443 def set_linebreak(self, linebreak):
24444 self.linebreak = linebreak
24445 def add_linebreak(self, value):
24446 self.linebreak.append(value)
24447 def insert_linebreak_at(self, index, value):
24448 self.linebreak.insert(index, value)
24449 def replace_linebreak_at(self, index, value):
24450 self.linebreak[index] = value
24451 def get_id(self):
24452 return self.id
24453 def set_id(self, id):
24454 self.id = id
24455 def get_valueOf_(self): return self.valueOf_
24456 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
24457 def hasContent_(self):
24458 if (
24459 self.ulink or
24460 self.bold or
24461 self.s or
24462 self.strike or
24463 self.underline or
24464 self.emphasis or
24465 self.computeroutput or
24466 self.subscript or
24467 self.superscript or
24468 self.center or
24469 self.small or
24470 self.cite or
24471 self.del_ or
24472 self.ins or
24473 self.htmlonly or
24474 self.manonly or
24475 self.xmlonly or
24476 self.rtfonly or
24477 self.latexonly or
24478 self.docbookonly or
24479 self.image or
24480 self.dot or
24481 self.msc or
24482 self.plantuml or
24483 self.anchor or
24484 self.formula or
24485 self.ref or
24486 self.emoji or
24487 self.linebreak or
24488 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
24489 self.content_
24490 ):
24491 return True
24492 else:
24493 return False
24494 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocItemType', pretty_print=True):
24495 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docTocItemType')
24496 if imported_ns_def_ is not None:
24497 namespacedef_ = imported_ns_def_
24498 if pretty_print:
24499 eol_ = '\n'
24500 else:
24501 eol_ = ''
24502 if self.original_tagname_ is not None and name_ == 'docTocItemType':
24503 name_ = self.original_tagname_
24504 if UseCapturedNS_ and self.ns_prefix_:
24505 namespaceprefix_ = self.ns_prefix_ + ':'
24506 showIndent(outfile, level, pretty_print)
24507 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
24508 already_processed = set()
24509 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docTocItemType')
24510 if self.hasContent_hasContent_():
24511 outfile.write('>%s' % (eol_, ))
24512 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docTocItemType', pretty_print=pretty_print)
24513 showIndent(outfile, level, pretty_print)
24514 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
24515 else:
24516 outfile.write('/>%s' % (eol_, ))
24517 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTocItemType'):
24518 if self.id is not None and 'id' not in already_processed:
24519 already_processed.add('id')
24520 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
24521 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocItemType', fromsubclass_=False, pretty_print=True):
24522 if not fromsubclass_:
24523 for item_ in self.content_:
24524 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
24525 if pretty_print:
24526 eol_ = '\n'
24527 else:
24528 eol_ = ''
24529 for ulink_ in self.ulink:
24530 namespaceprefix_ = self.ulink_nsprefix_ + ':' if (UseCapturedNS_ and self.ulink_nsprefix_) else ''
24531 ulink_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ulink', pretty_print=pretty_print)
24532 for bold_ in self.bold:
24533 namespaceprefix_ = self.bold_nsprefix_ + ':' if (UseCapturedNS_ and self.bold_nsprefix_) else ''
24534 bold_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='bold', pretty_print=pretty_print)
24535 for s_ in self.s:
24536 namespaceprefix_ = self.s_nsprefix_ + ':' if (UseCapturedNS_ and self.s_nsprefix_) else ''
24537 s_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='s', pretty_print=pretty_print)
24538 for strike_ in self.strike:
24539 namespaceprefix_ = self.strike_nsprefix_ + ':' if (UseCapturedNS_ and self.strike_nsprefix_) else ''
24540 strike_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='strike', pretty_print=pretty_print)
24541 for underline_ in self.underline:
24542 namespaceprefix_ = self.underline_nsprefix_ + ':' if (UseCapturedNS_ and self.underline_nsprefix_) else ''
24543 underline_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='underline', pretty_print=pretty_print)
24544 for emphasis_ in self.emphasis:
24545 namespaceprefix_ = self.emphasis_nsprefix_ + ':' if (UseCapturedNS_ and self.emphasis_nsprefix_) else ''
24546 emphasis_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emphasis', pretty_print=pretty_print)
24547 for computeroutput_ in self.computeroutput:
24548 namespaceprefix_ = self.computeroutput_nsprefix_ + ':' if (UseCapturedNS_ and self.computeroutput_nsprefix_) else ''
24549 computeroutput_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='computeroutput', pretty_print=pretty_print)
24550 for subscript_ in self.subscript:
24551 namespaceprefix_ = self.subscript_nsprefix_ + ':' if (UseCapturedNS_ and self.subscript_nsprefix_) else ''
24552 subscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='subscript', pretty_print=pretty_print)
24553 for superscript_ in self.superscript:
24554 namespaceprefix_ = self.superscript_nsprefix_ + ':' if (UseCapturedNS_ and self.superscript_nsprefix_) else ''
24555 superscript_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='superscript', pretty_print=pretty_print)
24556 for center_ in self.center:
24557 namespaceprefix_ = self.center_nsprefix_ + ':' if (UseCapturedNS_ and self.center_nsprefix_) else ''
24558 center_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='center', pretty_print=pretty_print)
24559 for small_ in self.small:
24560 namespaceprefix_ = self.small_nsprefix_ + ':' if (UseCapturedNS_ and self.small_nsprefix_) else ''
24561 small_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='small', pretty_print=pretty_print)
24562 for cite_ in self.cite:
24563 namespaceprefix_ = self.cite_nsprefix_ + ':' if (UseCapturedNS_ and self.cite_nsprefix_) else ''
24564 cite_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='cite', pretty_print=pretty_print)
24565 for del_ in self.del_:
24566 namespaceprefix_ = self.del__nsprefix_ + ':' if (UseCapturedNS_ and self.del__nsprefix_) else ''
24567 del_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='del', pretty_print=pretty_print)
24568 for ins_ in self.ins:
24569 namespaceprefix_ = self.ins_nsprefix_ + ':' if (UseCapturedNS_ and self.ins_nsprefix_) else ''
24570 ins_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ins', pretty_print=pretty_print)
24571 for htmlonly_ in self.htmlonly:
24572 namespaceprefix_ = self.htmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.htmlonly_nsprefix_) else ''
24573 htmlonly_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='htmlonly', pretty_print=pretty_print)
24574 for manonly_ in self.manonly:
24575 namespaceprefix_ = self.manonly_nsprefix_ + ':' if (UseCapturedNS_ and self.manonly_nsprefix_) else ''
24576 showIndent(outfile, level, pretty_print)
24577 outfile.write('<%smanonly>%s</%smanonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(manonly_), input_name='manonly')), namespaceprefix_ , eol_))
24578 for xmlonly_ in self.xmlonly:
24579 namespaceprefix_ = self.xmlonly_nsprefix_ + ':' if (UseCapturedNS_ and self.xmlonly_nsprefix_) else ''
24580 showIndent(outfile, level, pretty_print)
24581 outfile.write('<%sxmlonly>%s</%sxmlonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xmlonly_), input_name='xmlonly')), namespaceprefix_ , eol_))
24582 for rtfonly_ in self.rtfonly:
24583 namespaceprefix_ = self.rtfonly_nsprefix_ + ':' if (UseCapturedNS_ and self.rtfonly_nsprefix_) else ''
24584 showIndent(outfile, level, pretty_print)
24585 outfile.write('<%srtfonly>%s</%srtfonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(rtfonly_), input_name='rtfonly')), namespaceprefix_ , eol_))
24586 for latexonly_ in self.latexonly:
24587 namespaceprefix_ = self.latexonly_nsprefix_ + ':' if (UseCapturedNS_ and self.latexonly_nsprefix_) else ''
24588 showIndent(outfile, level, pretty_print)
24589 outfile.write('<%slatexonly>%s</%slatexonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(latexonly_), input_name='latexonly')), namespaceprefix_ , eol_))
24590 for docbookonly_ in self.docbookonly:
24591 namespaceprefix_ = self.docbookonly_nsprefix_ + ':' if (UseCapturedNS_ and self.docbookonly_nsprefix_) else ''
24592 showIndent(outfile, level, pretty_print)
24593 outfile.write('<%sdocbookonly>%s</%sdocbookonly>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(docbookonly_), input_name='docbookonly')), namespaceprefix_ , eol_))
24594 for image_ in self.image:
24595 namespaceprefix_ = self.image_nsprefix_ + ':' if (UseCapturedNS_ and self.image_nsprefix_) else ''
24596 image_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='image', pretty_print=pretty_print)
24597 for dot_ in self.dot:
24598 namespaceprefix_ = self.dot_nsprefix_ + ':' if (UseCapturedNS_ and self.dot_nsprefix_) else ''
24599 dot_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='dot', pretty_print=pretty_print)
24600 for msc_ in self.msc:
24601 namespaceprefix_ = self.msc_nsprefix_ + ':' if (UseCapturedNS_ and self.msc_nsprefix_) else ''
24602 msc_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='msc', pretty_print=pretty_print)
24603 for plantuml_ in self.plantuml:
24604 namespaceprefix_ = self.plantuml_nsprefix_ + ':' if (UseCapturedNS_ and self.plantuml_nsprefix_) else ''
24605 plantuml_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='plantuml', pretty_print=pretty_print)
24606 for anchor_ in self.anchor:
24607 namespaceprefix_ = self.anchor_nsprefix_ + ':' if (UseCapturedNS_ and self.anchor_nsprefix_) else ''
24608 anchor_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='anchor', pretty_print=pretty_print)
24609 for formula_ in self.formula:
24610 namespaceprefix_ = self.formula_nsprefix_ + ':' if (UseCapturedNS_ and self.formula_nsprefix_) else ''
24611 formula_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='formula', pretty_print=pretty_print)
24612 for ref_ in self.ref:
24613 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
24614 ref_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
24615 for emoji_ in self.emoji:
24616 namespaceprefix_ = self.emoji_nsprefix_ + ':' if (UseCapturedNS_ and self.emoji_nsprefix_) else ''
24617 emoji_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='emoji', pretty_print=pretty_print)
24618 for linebreak_ in self.linebreak:
24619 namespaceprefix_ = self.linebreak_nsprefix_ + ':' if (UseCapturedNS_ and self.linebreak_nsprefix_) else ''
24620 linebreak_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='linebreak', pretty_print=pretty_print)
24621 def build(self, node, gds_collector_=None):
24622 self.gds_collector_ = gds_collector_
24623 if SaveElementTreeNode:
24624 self.gds_elementtree_node_ = node
24625 already_processed = set()
24626 self.ns_prefix_ = node.prefix
24627 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
24628 self.valueOf_ = get_all_text_(node)
24629 if node.text is not None:
24630 obj_ = self.mixedclass_(MixedContainer.CategoryText,
24631 MixedContainer.TypeNone, '', node.text)
24632 self.content_.append(obj_)
24633 for child in node:
24634 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
24635 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
24636 return self
24637 def buildAttributes(self, node, attrs, already_processed):
24638 value = find_attr_value_('id', node)
24639 if value is not None and 'id' not in already_processed:
24640 already_processed.add('id')
24641 self.id = value
24642 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
24643 if nodeName_ == 'ulink':
24644 obj_ = docURLLink.factory(parent_object_=self)
24645 obj_.build(child_, gds_collector_=gds_collector_)
24646 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24647 MixedContainer.TypeNone, 'ulink', obj_)
24648 self.content_.append(obj_)
24649 if hasattr(self, 'add_ulink'):
24650 self.add_ulinkadd_ulink(obj_.value)
24651 elif hasattr(self, 'set_ulink'):
24652 self.set_ulinkset_ulink(obj_.value)
24653 elif nodeName_ == 'bold':
24654 obj_ = docMarkupType.factory(parent_object_=self)
24655 obj_.build(child_, gds_collector_=gds_collector_)
24656 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24657 MixedContainer.TypeNone, 'bold', obj_)
24658 self.content_.append(obj_)
24659 if hasattr(self, 'add_bold'):
24660 self.add_boldadd_bold(obj_.value)
24661 elif hasattr(self, 'set_bold'):
24662 self.set_boldset_bold(obj_.value)
24663 elif nodeName_ == 's':
24664 obj_ = docMarkupType.factory(parent_object_=self)
24665 obj_.build(child_, gds_collector_=gds_collector_)
24666 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24667 MixedContainer.TypeNone, 's', obj_)
24668 self.content_.append(obj_)
24669 if hasattr(self, 'add_s'):
24670 self.add_sadd_s(obj_.value)
24671 elif hasattr(self, 'set_s'):
24672 self.set_sset_s(obj_.value)
24673 elif nodeName_ == 'strike':
24674 obj_ = docMarkupType.factory(parent_object_=self)
24675 obj_.build(child_, gds_collector_=gds_collector_)
24676 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24677 MixedContainer.TypeNone, 'strike', obj_)
24678 self.content_.append(obj_)
24679 if hasattr(self, 'add_strike'):
24680 self.add_strikeadd_strike(obj_.value)
24681 elif hasattr(self, 'set_strike'):
24682 self.set_strikeset_strike(obj_.value)
24683 elif nodeName_ == 'underline':
24684 obj_ = docMarkupType.factory(parent_object_=self)
24685 obj_.build(child_, gds_collector_=gds_collector_)
24686 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24687 MixedContainer.TypeNone, 'underline', obj_)
24688 self.content_.append(obj_)
24689 if hasattr(self, 'add_underline'):
24690 self.add_underlineadd_underline(obj_.value)
24691 elif hasattr(self, 'set_underline'):
24692 self.set_underlineset_underline(obj_.value)
24693 elif nodeName_ == 'emphasis':
24694 obj_ = docMarkupType.factory(parent_object_=self)
24695 obj_.build(child_, gds_collector_=gds_collector_)
24696 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24697 MixedContainer.TypeNone, 'emphasis', obj_)
24698 self.content_.append(obj_)
24699 if hasattr(self, 'add_emphasis'):
24700 self.add_emphasisadd_emphasis(obj_.value)
24701 elif hasattr(self, 'set_emphasis'):
24702 self.set_emphasisset_emphasis(obj_.value)
24703 elif nodeName_ == 'computeroutput':
24704 obj_ = docMarkupType.factory(parent_object_=self)
24705 obj_.build(child_, gds_collector_=gds_collector_)
24706 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24707 MixedContainer.TypeNone, 'computeroutput', obj_)
24708 self.content_.append(obj_)
24709 if hasattr(self, 'add_computeroutput'):
24711 elif hasattr(self, 'set_computeroutput'):
24713 elif nodeName_ == 'subscript':
24714 obj_ = docMarkupType.factory(parent_object_=self)
24715 obj_.build(child_, gds_collector_=gds_collector_)
24716 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24717 MixedContainer.TypeNone, 'subscript', obj_)
24718 self.content_.append(obj_)
24719 if hasattr(self, 'add_subscript'):
24720 self.add_subscriptadd_subscript(obj_.value)
24721 elif hasattr(self, 'set_subscript'):
24722 self.set_subscriptset_subscript(obj_.value)
24723 elif nodeName_ == 'superscript':
24724 obj_ = docMarkupType.factory(parent_object_=self)
24725 obj_.build(child_, gds_collector_=gds_collector_)
24726 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24727 MixedContainer.TypeNone, 'superscript', obj_)
24728 self.content_.append(obj_)
24729 if hasattr(self, 'add_superscript'):
24730 self.add_superscriptadd_superscript(obj_.value)
24731 elif hasattr(self, 'set_superscript'):
24732 self.set_superscriptset_superscript(obj_.value)
24733 elif nodeName_ == 'center':
24734 obj_ = docMarkupType.factory(parent_object_=self)
24735 obj_.build(child_, gds_collector_=gds_collector_)
24736 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24737 MixedContainer.TypeNone, 'center', obj_)
24738 self.content_.append(obj_)
24739 if hasattr(self, 'add_center'):
24740 self.add_centeradd_center(obj_.value)
24741 elif hasattr(self, 'set_center'):
24742 self.set_centerset_center(obj_.value)
24743 elif nodeName_ == 'small':
24744 obj_ = docMarkupType.factory(parent_object_=self)
24745 obj_.build(child_, gds_collector_=gds_collector_)
24746 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24747 MixedContainer.TypeNone, 'small', obj_)
24748 self.content_.append(obj_)
24749 if hasattr(self, 'add_small'):
24750 self.add_smalladd_small(obj_.value)
24751 elif hasattr(self, 'set_small'):
24752 self.set_smallset_small(obj_.value)
24753 elif nodeName_ == 'cite':
24754 obj_ = docMarkupType.factory(parent_object_=self)
24755 obj_.build(child_, gds_collector_=gds_collector_)
24756 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24757 MixedContainer.TypeNone, 'cite', obj_)
24758 self.content_.append(obj_)
24759 if hasattr(self, 'add_cite'):
24760 self.add_citeadd_cite(obj_.value)
24761 elif hasattr(self, 'set_cite'):
24762 self.set_citeset_cite(obj_.value)
24763 elif nodeName_ == 'del':
24764 obj_ = docMarkupType.factory(parent_object_=self)
24765 obj_.build(child_, gds_collector_=gds_collector_)
24766 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24767 MixedContainer.TypeNone, 'del', obj_)
24768 self.content_.append(obj_)
24769 if hasattr(self, 'add_del'):
24770 self.add_deladd_del(obj_.value)
24771 elif hasattr(self, 'set_del'):
24772 self.set_delset_del(obj_.value)
24773 elif nodeName_ == 'ins':
24774 obj_ = docMarkupType.factory(parent_object_=self)
24775 obj_.build(child_, gds_collector_=gds_collector_)
24776 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24777 MixedContainer.TypeNone, 'ins', obj_)
24778 self.content_.append(obj_)
24779 if hasattr(self, 'add_ins'):
24780 self.add_insadd_ins(obj_.value)
24781 elif hasattr(self, 'set_ins'):
24782 self.set_insset_ins(obj_.value)
24783 elif nodeName_ == 'htmlonly':
24784 obj_ = docHtmlOnlyType.factory(parent_object_=self)
24785 obj_.build(child_, gds_collector_=gds_collector_)
24786 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24787 MixedContainer.TypeNone, 'htmlonly', obj_)
24788 self.content_.append(obj_)
24789 if hasattr(self, 'add_htmlonly'):
24790 self.add_htmlonlyadd_htmlonly(obj_.value)
24791 elif hasattr(self, 'set_htmlonly'):
24792 self.set_htmlonlyset_htmlonly(obj_.value)
24793 elif nodeName_ == 'manonly' and child_.text is not None:
24794 valuestr_ = child_.text
24795 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'manonly')
24796 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'manonly')
24797 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
24798 MixedContainer.TypeString, 'manonly', valuestr_)
24799 self.content_.append(obj_)
24800 self.manonly_nsprefix_ = child_.prefix
24801 elif nodeName_ == 'xmlonly' and child_.text is not None:
24802 valuestr_ = child_.text
24803 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'xmlonly')
24804 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'xmlonly')
24805 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
24806 MixedContainer.TypeString, 'xmlonly', valuestr_)
24807 self.content_.append(obj_)
24808 self.xmlonly_nsprefix_ = child_.prefix
24809 elif nodeName_ == 'rtfonly' and child_.text is not None:
24810 valuestr_ = child_.text
24811 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'rtfonly')
24812 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'rtfonly')
24813 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
24814 MixedContainer.TypeString, 'rtfonly', valuestr_)
24815 self.content_.append(obj_)
24816 self.rtfonly_nsprefix_ = child_.prefix
24817 elif nodeName_ == 'latexonly' and child_.text is not None:
24818 valuestr_ = child_.text
24819 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'latexonly')
24820 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'latexonly')
24821 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
24822 MixedContainer.TypeString, 'latexonly', valuestr_)
24823 self.content_.append(obj_)
24824 self.latexonly_nsprefix_ = child_.prefix
24825 elif nodeName_ == 'docbookonly' and child_.text is not None:
24826 valuestr_ = child_.text
24827 valuestr_ = self.gds_parse_stringgds_parse_string(valuestr_, node, 'docbookonly')
24828 valuestr_ = self.gds_validate_stringgds_validate_string(valuestr_, node, 'docbookonly')
24829 obj_ = self.mixedclass_(MixedContainer.CategorySimple,
24830 MixedContainer.TypeString, 'docbookonly', valuestr_)
24831 self.content_.append(obj_)
24832 self.docbookonly_nsprefix_ = child_.prefix
24833 elif nodeName_ == 'image':
24834 obj_ = docImageType.factory(parent_object_=self)
24835 obj_.build(child_, gds_collector_=gds_collector_)
24836 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24837 MixedContainer.TypeNone, 'image', obj_)
24838 self.content_.append(obj_)
24839 if hasattr(self, 'add_image'):
24840 self.add_imageadd_image(obj_.value)
24841 elif hasattr(self, 'set_image'):
24842 self.set_imageset_image(obj_.value)
24843 elif nodeName_ == 'dot':
24844 obj_ = docDotMscType.factory(parent_object_=self)
24845 obj_.build(child_, gds_collector_=gds_collector_)
24846 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24847 MixedContainer.TypeNone, 'dot', obj_)
24848 self.content_.append(obj_)
24849 if hasattr(self, 'add_dot'):
24850 self.add_dotadd_dot(obj_.value)
24851 elif hasattr(self, 'set_dot'):
24852 self.set_dotset_dot(obj_.value)
24853 elif nodeName_ == 'msc':
24854 obj_ = docDotMscType.factory(parent_object_=self)
24855 obj_.build(child_, gds_collector_=gds_collector_)
24856 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24857 MixedContainer.TypeNone, 'msc', obj_)
24858 self.content_.append(obj_)
24859 if hasattr(self, 'add_msc'):
24860 self.add_mscadd_msc(obj_.value)
24861 elif hasattr(self, 'set_msc'):
24862 self.set_mscset_msc(obj_.value)
24863 elif nodeName_ == 'plantuml':
24864 obj_ = docPlantumlType.factory(parent_object_=self)
24865 obj_.build(child_, gds_collector_=gds_collector_)
24866 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24867 MixedContainer.TypeNone, 'plantuml', obj_)
24868 self.content_.append(obj_)
24869 if hasattr(self, 'add_plantuml'):
24870 self.add_plantumladd_plantuml(obj_.value)
24871 elif hasattr(self, 'set_plantuml'):
24872 self.set_plantumlset_plantuml(obj_.value)
24873 elif nodeName_ == 'anchor':
24874 obj_ = docAnchorType.factory(parent_object_=self)
24875 obj_.build(child_, gds_collector_=gds_collector_)
24876 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24877 MixedContainer.TypeNone, 'anchor', obj_)
24878 self.content_.append(obj_)
24879 if hasattr(self, 'add_anchor'):
24880 self.add_anchoradd_anchor(obj_.value)
24881 elif hasattr(self, 'set_anchor'):
24882 self.set_anchorset_anchor(obj_.value)
24883 elif nodeName_ == 'formula':
24884 obj_ = docFormulaType.factory(parent_object_=self)
24885 obj_.build(child_, gds_collector_=gds_collector_)
24886 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24887 MixedContainer.TypeNone, 'formula', obj_)
24888 self.content_.append(obj_)
24889 if hasattr(self, 'add_formula'):
24890 self.add_formulaadd_formula(obj_.value)
24891 elif hasattr(self, 'set_formula'):
24892 self.set_formulaset_formula(obj_.value)
24893 elif nodeName_ == 'ref':
24894 obj_ = docRefTextType.factory(parent_object_=self)
24895 obj_.build(child_, gds_collector_=gds_collector_)
24896 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24897 MixedContainer.TypeNone, 'ref', obj_)
24898 self.content_.append(obj_)
24899 if hasattr(self, 'add_ref'):
24900 self.add_refadd_ref(obj_.value)
24901 elif hasattr(self, 'set_ref'):
24902 self.set_refset_ref(obj_.value)
24903 elif nodeName_ == 'emoji':
24904 obj_ = docEmojiType.factory(parent_object_=self)
24905 obj_.build(child_, gds_collector_=gds_collector_)
24906 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24907 MixedContainer.TypeNone, 'emoji', obj_)
24908 self.content_.append(obj_)
24909 if hasattr(self, 'add_emoji'):
24910 self.add_emojiadd_emoji(obj_.value)
24911 elif hasattr(self, 'set_emoji'):
24912 self.set_emojiset_emoji(obj_.value)
24913 elif nodeName_ == 'linebreak':
24914 obj_ = docEmptyType.factory(parent_object_=self)
24915 obj_.build(child_, gds_collector_=gds_collector_)
24916 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
24917 MixedContainer.TypeNone, 'linebreak', obj_)
24918 self.content_.append(obj_)
24919 if hasattr(self, 'add_linebreak'):
24920 self.add_linebreakadd_linebreak(obj_.value)
24921 elif hasattr(self, 'set_linebreak'):
24922 self.set_linebreakset_linebreak(obj_.value)
24923 if not fromsubclass_ and child_.tail is not None:
24924 obj_ = self.mixedclass_(MixedContainer.CategoryText,
24925 MixedContainer.TypeNone, '', child_.tail)
24926 self.content_.append(obj_)
24927# end class docTocItemType
24928
24929
24931 __hash__ = GeneratedsSuper.__hash__
24932 subclass = None
24933 superclass = None
24934 def __init__(self, tocitem=None, gds_collector_=None, **kwargs_):
24935 self.gds_collector_ = gds_collector_
24936 self.gds_elementtree_node_ = None
24937 self.original_tagname_ = None
24938 self.parent_object_ = kwargs_.get('parent_object_')
24939 self.ns_prefix_ = None
24940 if tocitem is None:
24941 self.tocitem = []
24942 else:
24943 self.tocitem = tocitem
24944 self.tocitem_nsprefix_ = None
24945 def factory(*args_, **kwargs_):
24946 if CurrentSubclassModule_ is not None:
24947 subclass = getSubclassFromModule_(
24948 CurrentSubclassModule_, docTocListType)
24949 if subclass is not None:
24950 return subclass(*args_, **kwargs_)
24951 if docTocListType.subclass:
24952 return docTocListType.subclass(*args_, **kwargs_)
24953 else:
24954 return docTocListType(*args_, **kwargs_)
24955 factory = staticmethod(factory)
24957 return self.ns_prefix_
24958 def set_ns_prefix_(self, ns_prefix):
24959 self.ns_prefix_ = ns_prefix
24960 def get_tocitem(self):
24961 return self.tocitem
24962 def set_tocitem(self, tocitem):
24963 self.tocitem = tocitem
24964 def add_tocitem(self, value):
24965 self.tocitem.append(value)
24966 def insert_tocitem_at(self, index, value):
24967 self.tocitem.insert(index, value)
24968 def replace_tocitem_at(self, index, value):
24969 self.tocitem[index] = value
24970 def hasContent_(self):
24971 if (
24972 self.tocitem
24973 ):
24974 return True
24975 else:
24976 return False
24977 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocListType', pretty_print=True):
24978 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docTocListType')
24979 if imported_ns_def_ is not None:
24980 namespacedef_ = imported_ns_def_
24981 if pretty_print:
24982 eol_ = '\n'
24983 else:
24984 eol_ = ''
24985 if self.original_tagname_ is not None and name_ == 'docTocListType':
24986 name_ = self.original_tagname_
24987 if UseCapturedNS_ and self.ns_prefix_:
24988 namespaceprefix_ = self.ns_prefix_ + ':'
24989 showIndent(outfile, level, pretty_print)
24990 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
24991 already_processed = set()
24992 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docTocListType')
24993 if self.hasContent_hasContent_():
24994 outfile.write('>%s' % (eol_, ))
24995 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docTocListType', pretty_print=pretty_print)
24996 showIndent(outfile, level, pretty_print)
24997 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
24998 else:
24999 outfile.write('/>%s' % (eol_, ))
25000 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTocListType'):
25001 pass
25002 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocListType', fromsubclass_=False, pretty_print=True):
25003 if pretty_print:
25004 eol_ = '\n'
25005 else:
25006 eol_ = ''
25007 for tocitem_ in self.tocitem:
25008 namespaceprefix_ = self.tocitem_nsprefix_ + ':' if (UseCapturedNS_ and self.tocitem_nsprefix_) else ''
25009 tocitem_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='tocitem', pretty_print=pretty_print)
25010 def build(self, node, gds_collector_=None):
25011 self.gds_collector_ = gds_collector_
25012 if SaveElementTreeNode:
25013 self.gds_elementtree_node_ = node
25014 already_processed = set()
25015 self.ns_prefix_ = node.prefix
25016 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25017 for child in node:
25018 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25019 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25020 return self
25021 def buildAttributes(self, node, attrs, already_processed):
25022 pass
25023 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25024 if nodeName_ == 'tocitem':
25025 obj_ = docTocItemType.factory(parent_object_=self)
25026 obj_.build(child_, gds_collector_=gds_collector_)
25027 self.tocitem.append(obj_)
25028 obj_.original_tagname_ = 'tocitem'
25029# end class docTocListType
25030
25031
25032class docLanguageType(GeneratedsSuper):
25033 __hash__ = GeneratedsSuper.__hash__
25034 subclass = None
25035 superclass = None
25036 def __init__(self, langid=None, para=None, gds_collector_=None, **kwargs_):
25037 self.gds_collector_ = gds_collector_
25038 self.gds_elementtree_node_ = None
25039 self.original_tagname_ = None
25040 self.parent_object_ = kwargs_.get('parent_object_')
25041 self.ns_prefix_ = None
25042 self.langid = _cast(None, langid)
25043 self.langid_nsprefix_ = None
25044 if para is None:
25045 self.para = []
25046 else:
25047 self.para = para
25048 self.para_nsprefix_ = None
25049 def factory(*args_, **kwargs_):
25050 if CurrentSubclassModule_ is not None:
25051 subclass = getSubclassFromModule_(
25052 CurrentSubclassModule_, docLanguageType)
25053 if subclass is not None:
25054 return subclass(*args_, **kwargs_)
25055 if docLanguageType.subclass:
25056 return docLanguageType.subclass(*args_, **kwargs_)
25057 else:
25058 return docLanguageType(*args_, **kwargs_)
25059 factory = staticmethod(factory)
25061 return self.ns_prefix_
25062 def set_ns_prefix_(self, ns_prefix):
25063 self.ns_prefix_ = ns_prefix
25064 def get_para(self):
25065 return self.para
25066 def set_para(self, para):
25067 self.para = para
25068 def add_para(self, value):
25069 self.para.append(value)
25070 def insert_para_at(self, index, value):
25071 self.para.insert(index, value)
25072 def replace_para_at(self, index, value):
25073 self.para[index] = value
25074 def get_langid(self):
25075 return self.langid
25076 def set_langid(self, langid):
25077 self.langid = langid
25078 def hasContent_(self):
25079 if (
25080 self.para
25081 ):
25082 return True
25083 else:
25084 return False
25085 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docLanguageType', pretty_print=True):
25086 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docLanguageType')
25087 if imported_ns_def_ is not None:
25088 namespacedef_ = imported_ns_def_
25089 if pretty_print:
25090 eol_ = '\n'
25091 else:
25092 eol_ = ''
25093 if self.original_tagname_ is not None and name_ == 'docLanguageType':
25094 name_ = self.original_tagname_
25095 if UseCapturedNS_ and self.ns_prefix_:
25096 namespaceprefix_ = self.ns_prefix_ + ':'
25097 showIndent(outfile, level, pretty_print)
25098 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25099 already_processed = set()
25100 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docLanguageType')
25101 if self.hasContent_hasContent_():
25102 outfile.write('>%s' % (eol_, ))
25103 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docLanguageType', pretty_print=pretty_print)
25104 showIndent(outfile, level, pretty_print)
25105 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25106 else:
25107 outfile.write('/>%s' % (eol_, ))
25108 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docLanguageType'):
25109 if self.langid is not None and 'langid' not in already_processed:
25110 already_processed.add('langid')
25111 outfile.write(' langid=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.langid), input_name='langid')), ))
25112 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docLanguageType', fromsubclass_=False, pretty_print=True):
25113 if pretty_print:
25114 eol_ = '\n'
25115 else:
25116 eol_ = ''
25117 for para_ in self.para:
25118 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
25119 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
25120 def build(self, node, gds_collector_=None):
25121 self.gds_collector_ = gds_collector_
25122 if SaveElementTreeNode:
25123 self.gds_elementtree_node_ = node
25124 already_processed = set()
25125 self.ns_prefix_ = node.prefix
25126 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25127 for child in node:
25128 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25129 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25130 return self
25131 def buildAttributes(self, node, attrs, already_processed):
25132 value = find_attr_value_('langid', node)
25133 if value is not None and 'langid' not in already_processed:
25134 already_processed.add('langid')
25135 self.langid = value
25136 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25137 if nodeName_ == 'para':
25138 obj_ = docParaType.factory(parent_object_=self)
25139 obj_.build(child_, gds_collector_=gds_collector_)
25140 self.para.append(obj_)
25141 obj_.original_tagname_ = 'para'
25142# end class docLanguageType
25143
25144
25146 __hash__ = GeneratedsSuper.__hash__
25147 subclass = None
25148 superclass = None
25149 def __init__(self, kind=None, parameteritem=None, gds_collector_=None, **kwargs_):
25150 self.gds_collector_ = gds_collector_
25151 self.gds_elementtree_node_ = None
25152 self.original_tagname_ = None
25153 self.parent_object_ = kwargs_.get('parent_object_')
25154 self.ns_prefix_ = None
25155 self.kind = _cast(None, kind)
25156 self.kind_nsprefix_ = None
25157 if parameteritem is None:
25158 self.parameteritem = []
25159 else:
25160 self.parameteritem = parameteritem
25161 self.parameteritem_nsprefix_ = None
25162 def factory(*args_, **kwargs_):
25163 if CurrentSubclassModule_ is not None:
25164 subclass = getSubclassFromModule_(
25165 CurrentSubclassModule_, docParamListType)
25166 if subclass is not None:
25167 return subclass(*args_, **kwargs_)
25168 if docParamListType.subclass:
25169 return docParamListType.subclass(*args_, **kwargs_)
25170 else:
25171 return docParamListType(*args_, **kwargs_)
25172 factory = staticmethod(factory)
25174 return self.ns_prefix_
25175 def set_ns_prefix_(self, ns_prefix):
25176 self.ns_prefix_ = ns_prefix
25178 return self.parameteritem
25179 def set_parameteritem(self, parameteritem):
25180 self.parameteritem = parameteritem
25181 def add_parameteritem(self, value):
25182 self.parameteritem.append(value)
25183 def insert_parameteritem_at(self, index, value):
25184 self.parameteritem.insert(index, value)
25185 def replace_parameteritem_at(self, index, value):
25186 self.parameteritem[index] = value
25187 def get_kind(self):
25188 return self.kind
25189 def set_kind(self, kind):
25190 self.kind = kind
25192 # Validate type DoxParamListKind, a restriction on xsd:string.
25193 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
25194 if not isinstance(value, str):
25196 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
25197 return False
25198 value = value
25199 enumerations = ['param', 'retval', 'exception', 'templateparam']
25200 if value not in enumerations:
25202 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxParamListKind' % {"value" : encode_str_2_3(value), "lineno": lineno} )
25203 result = False
25204 def hasContent_(self):
25205 if (
25206 self.parameteritem
25207 ):
25208 return True
25209 else:
25210 return False
25211 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListType', pretty_print=True):
25212 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParamListType')
25213 if imported_ns_def_ is not None:
25214 namespacedef_ = imported_ns_def_
25215 if pretty_print:
25216 eol_ = '\n'
25217 else:
25218 eol_ = ''
25219 if self.original_tagname_ is not None and name_ == 'docParamListType':
25220 name_ = self.original_tagname_
25221 if UseCapturedNS_ and self.ns_prefix_:
25222 namespaceprefix_ = self.ns_prefix_ + ':'
25223 showIndent(outfile, level, pretty_print)
25224 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25225 already_processed = set()
25226 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParamListType')
25227 if self.hasContent_hasContent_():
25228 outfile.write('>%s' % (eol_, ))
25229 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParamListType', pretty_print=pretty_print)
25230 showIndent(outfile, level, pretty_print)
25231 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25232 else:
25233 outfile.write('/>%s' % (eol_, ))
25234 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamListType'):
25235 if self.kind is not None and 'kind' not in already_processed:
25236 already_processed.add('kind')
25237 outfile.write(' kind=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.kind), input_name='kind')), ))
25238 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListType', fromsubclass_=False, pretty_print=True):
25239 if pretty_print:
25240 eol_ = '\n'
25241 else:
25242 eol_ = ''
25243 for parameteritem_ in self.parameteritem:
25244 namespaceprefix_ = self.parameteritem_nsprefix_ + ':' if (UseCapturedNS_ and self.parameteritem_nsprefix_) else ''
25245 parameteritem_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parameteritem', pretty_print=pretty_print)
25246 def build(self, node, gds_collector_=None):
25247 self.gds_collector_ = gds_collector_
25248 if SaveElementTreeNode:
25249 self.gds_elementtree_node_ = node
25250 already_processed = set()
25251 self.ns_prefix_ = node.prefix
25252 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25253 for child in node:
25254 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25255 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25256 return self
25257 def buildAttributes(self, node, attrs, already_processed):
25258 value = find_attr_value_('kind', node)
25259 if value is not None and 'kind' not in already_processed:
25260 already_processed.add('kind')
25261 self.kind = value
25262 self.validate_DoxParamListKindvalidate_DoxParamListKind(self.kind) # validate type DoxParamListKind
25263 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25264 if nodeName_ == 'parameteritem':
25265 obj_ = docParamListItem.factory(parent_object_=self)
25266 obj_.build(child_, gds_collector_=gds_collector_)
25267 self.parameteritem.append(obj_)
25268 obj_.original_tagname_ = 'parameteritem'
25269# end class docParamListType
25270
25271
25273 __hash__ = GeneratedsSuper.__hash__
25274 subclass = None
25275 superclass = None
25276 def __init__(self, parameternamelist=None, parameterdescription=None, gds_collector_=None, **kwargs_):
25277 self.gds_collector_ = gds_collector_
25278 self.gds_elementtree_node_ = None
25279 self.original_tagname_ = None
25280 self.parent_object_ = kwargs_.get('parent_object_')
25281 self.ns_prefix_ = None
25282 if parameternamelist is None:
25283 self.parameternamelist = []
25284 else:
25285 self.parameternamelist = parameternamelist
25286 self.parameternamelist_nsprefix_ = None
25287 self.parameterdescription = parameterdescription
25289 def factory(*args_, **kwargs_):
25290 if CurrentSubclassModule_ is not None:
25291 subclass = getSubclassFromModule_(
25292 CurrentSubclassModule_, docParamListItem)
25293 if subclass is not None:
25294 return subclass(*args_, **kwargs_)
25295 if docParamListItem.subclass:
25296 return docParamListItem.subclass(*args_, **kwargs_)
25297 else:
25298 return docParamListItem(*args_, **kwargs_)
25299 factory = staticmethod(factory)
25301 return self.ns_prefix_
25302 def set_ns_prefix_(self, ns_prefix):
25303 self.ns_prefix_ = ns_prefix
25305 return self.parameternamelist
25306 def set_parameternamelist(self, parameternamelist):
25307 self.parameternamelist = parameternamelist
25308 def add_parameternamelist(self, value):
25309 self.parameternamelist.append(value)
25310 def insert_parameternamelist_at(self, index, value):
25311 self.parameternamelist.insert(index, value)
25312 def replace_parameternamelist_at(self, index, value):
25313 self.parameternamelist[index] = value
25315 return self.parameterdescription
25316 def set_parameterdescription(self, parameterdescription):
25317 self.parameterdescription = parameterdescription
25318 def hasContent_(self):
25319 if (
25320 self.parameternamelist or
25321 self.parameterdescription is not None
25322 ):
25323 return True
25324 else:
25325 return False
25326 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListItem', pretty_print=True):
25327 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParamListItem')
25328 if imported_ns_def_ is not None:
25329 namespacedef_ = imported_ns_def_
25330 if pretty_print:
25331 eol_ = '\n'
25332 else:
25333 eol_ = ''
25334 if self.original_tagname_ is not None and name_ == 'docParamListItem':
25335 name_ = self.original_tagname_
25336 if UseCapturedNS_ and self.ns_prefix_:
25337 namespaceprefix_ = self.ns_prefix_ + ':'
25338 showIndent(outfile, level, pretty_print)
25339 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25340 already_processed = set()
25341 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParamListItem')
25342 if self.hasContent_hasContent_():
25343 outfile.write('>%s' % (eol_, ))
25344 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParamListItem', pretty_print=pretty_print)
25345 showIndent(outfile, level, pretty_print)
25346 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25347 else:
25348 outfile.write('/>%s' % (eol_, ))
25349 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamListItem'):
25350 pass
25351 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListItem', fromsubclass_=False, pretty_print=True):
25352 if pretty_print:
25353 eol_ = '\n'
25354 else:
25355 eol_ = ''
25356 for parameternamelist_ in self.parameternamelist:
25357 namespaceprefix_ = self.parameternamelist_nsprefix_ + ':' if (UseCapturedNS_ and self.parameternamelist_nsprefix_) else ''
25358 parameternamelist_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parameternamelist', pretty_print=pretty_print)
25359 if self.parameterdescription is not None:
25360 namespaceprefix_ = self.parameterdescription_nsprefix_ + ':' if (UseCapturedNS_ and self.parameterdescription_nsprefix_) else ''
25361 self.parameterdescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parameterdescription', pretty_print=pretty_print)
25362 def build(self, node, gds_collector_=None):
25363 self.gds_collector_ = gds_collector_
25364 if SaveElementTreeNode:
25365 self.gds_elementtree_node_ = node
25366 already_processed = set()
25367 self.ns_prefix_ = node.prefix
25368 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25369 for child in node:
25370 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25371 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25372 return self
25373 def buildAttributes(self, node, attrs, already_processed):
25374 pass
25375 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25376 if nodeName_ == 'parameternamelist':
25377 obj_ = docParamNameList.factory(parent_object_=self)
25378 obj_.build(child_, gds_collector_=gds_collector_)
25379 self.parameternamelist.append(obj_)
25380 obj_.original_tagname_ = 'parameternamelist'
25381 elif nodeName_ == 'parameterdescription':
25382 obj_ = descriptionType.factory(parent_object_=self)
25383 obj_.build(child_, gds_collector_=gds_collector_)
25384 self.parameterdescription = obj_
25385 obj_.original_tagname_ = 'parameterdescription'
25386# end class docParamListItem
25387
25388
25389class docParamNameList(GeneratedsSuper):
25390 __hash__ = GeneratedsSuper.__hash__
25391 subclass = None
25392 superclass = None
25393 def __init__(self, parametertype=None, parametername=None, gds_collector_=None, **kwargs_):
25394 self.gds_collector_ = gds_collector_
25395 self.gds_elementtree_node_ = None
25396 self.original_tagname_ = None
25397 self.parent_object_ = kwargs_.get('parent_object_')
25398 self.ns_prefix_ = None
25399 if parametertype is None:
25400 self.parametertype = []
25401 else:
25402 self.parametertype = parametertype
25403 self.parametertype_nsprefix_ = None
25404 if parametername is None:
25405 self.parametername = []
25406 else:
25407 self.parametername = parametername
25408 self.parametername_nsprefix_ = None
25409 def factory(*args_, **kwargs_):
25410 if CurrentSubclassModule_ is not None:
25411 subclass = getSubclassFromModule_(
25412 CurrentSubclassModule_, docParamNameList)
25413 if subclass is not None:
25414 return subclass(*args_, **kwargs_)
25415 if docParamNameList.subclass:
25416 return docParamNameList.subclass(*args_, **kwargs_)
25417 else:
25418 return docParamNameList(*args_, **kwargs_)
25419 factory = staticmethod(factory)
25421 return self.ns_prefix_
25422 def set_ns_prefix_(self, ns_prefix):
25423 self.ns_prefix_ = ns_prefix
25425 return self.parametertype
25426 def set_parametertype(self, parametertype):
25427 self.parametertype = parametertype
25428 def add_parametertype(self, value):
25429 self.parametertype.append(value)
25430 def insert_parametertype_at(self, index, value):
25431 self.parametertype.insert(index, value)
25432 def replace_parametertype_at(self, index, value):
25433 self.parametertype[index] = value
25435 return self.parametername
25436 def set_parametername(self, parametername):
25437 self.parametername = parametername
25438 def add_parametername(self, value):
25439 self.parametername.append(value)
25440 def insert_parametername_at(self, index, value):
25441 self.parametername.insert(index, value)
25442 def replace_parametername_at(self, index, value):
25443 self.parametername[index] = value
25444 def hasContent_(self):
25445 if (
25446 self.parametertype or
25447 self.parametername
25448 ):
25449 return True
25450 else:
25451 return False
25452 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamNameList', pretty_print=True):
25453 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParamNameList')
25454 if imported_ns_def_ is not None:
25455 namespacedef_ = imported_ns_def_
25456 if pretty_print:
25457 eol_ = '\n'
25458 else:
25459 eol_ = ''
25460 if self.original_tagname_ is not None and name_ == 'docParamNameList':
25461 name_ = self.original_tagname_
25462 if UseCapturedNS_ and self.ns_prefix_:
25463 namespaceprefix_ = self.ns_prefix_ + ':'
25464 showIndent(outfile, level, pretty_print)
25465 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25466 already_processed = set()
25467 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParamNameList')
25468 if self.hasContent_hasContent_():
25469 outfile.write('>%s' % (eol_, ))
25470 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParamNameList', pretty_print=pretty_print)
25471 showIndent(outfile, level, pretty_print)
25472 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25473 else:
25474 outfile.write('/>%s' % (eol_, ))
25475 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamNameList'):
25476 pass
25477 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamNameList', fromsubclass_=False, pretty_print=True):
25478 if pretty_print:
25479 eol_ = '\n'
25480 else:
25481 eol_ = ''
25482 for parametertype_ in self.parametertype:
25483 namespaceprefix_ = self.parametertype_nsprefix_ + ':' if (UseCapturedNS_ and self.parametertype_nsprefix_) else ''
25484 parametertype_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parametertype', pretty_print=pretty_print)
25485 for parametername_ in self.parametername:
25486 namespaceprefix_ = self.parametername_nsprefix_ + ':' if (UseCapturedNS_ and self.parametername_nsprefix_) else ''
25487 parametername_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='parametername', pretty_print=pretty_print)
25488 def build(self, node, gds_collector_=None):
25489 self.gds_collector_ = gds_collector_
25490 if SaveElementTreeNode:
25491 self.gds_elementtree_node_ = node
25492 already_processed = set()
25493 self.ns_prefix_ = node.prefix
25494 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25495 for child in node:
25496 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25497 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25498 return self
25499 def buildAttributes(self, node, attrs, already_processed):
25500 pass
25501 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25502 if nodeName_ == 'parametertype':
25503 obj_ = docParamType.factory(parent_object_=self)
25504 obj_.build(child_, gds_collector_=gds_collector_)
25505 self.parametertype.append(obj_)
25506 obj_.original_tagname_ = 'parametertype'
25507 elif nodeName_ == 'parametername':
25508 obj_ = docParamName.factory(parent_object_=self)
25509 obj_.build(child_, gds_collector_=gds_collector_)
25510 self.parametername.append(obj_)
25511 obj_.original_tagname_ = 'parametername'
25512# end class docParamNameList
25513
25514
25515class docParamType(GeneratedsSuper):
25516 __hash__ = GeneratedsSuper.__hash__
25517 subclass = None
25518 superclass = None
25519 def __init__(self, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
25520 self.gds_collector_ = gds_collector_
25521 self.gds_elementtree_node_ = None
25522 self.original_tagname_ = None
25523 self.parent_object_ = kwargs_.get('parent_object_')
25524 self.ns_prefix_ = None
25525 self.ref = ref
25526 self.ref_nsprefix_ = None
25527 self.valueOf_ = valueOf_
25528 if mixedclass_ is None:
25529 self.mixedclass_ = MixedContainer
25530 else:
25531 self.mixedclass_ = mixedclass_
25532 if content_ is None:
25533 self.content_ = []
25534 else:
25535 self.content_ = content_
25536 self.valueOf_ = valueOf_
25537 def factory(*args_, **kwargs_):
25538 if CurrentSubclassModule_ is not None:
25539 subclass = getSubclassFromModule_(
25540 CurrentSubclassModule_, docParamType)
25541 if subclass is not None:
25542 return subclass(*args_, **kwargs_)
25543 if docParamType.subclass:
25544 return docParamType.subclass(*args_, **kwargs_)
25545 else:
25546 return docParamType(*args_, **kwargs_)
25547 factory = staticmethod(factory)
25549 return self.ns_prefix_
25550 def set_ns_prefix_(self, ns_prefix):
25551 self.ns_prefix_ = ns_prefix
25552 def get_ref(self):
25553 return self.ref
25554 def set_ref(self, ref):
25555 self.ref = ref
25556 def get_valueOf_(self): return self.valueOf_
25557 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
25558 def hasContent_(self):
25559 if (
25560 self.ref is not None or
25561 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
25562 self.content_
25563 ):
25564 return True
25565 else:
25566 return False
25567 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamType', pretty_print=True):
25568 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParamType')
25569 if imported_ns_def_ is not None:
25570 namespacedef_ = imported_ns_def_
25571 if pretty_print:
25572 eol_ = '\n'
25573 else:
25574 eol_ = ''
25575 if self.original_tagname_ is not None and name_ == 'docParamType':
25576 name_ = self.original_tagname_
25577 if UseCapturedNS_ and self.ns_prefix_:
25578 namespaceprefix_ = self.ns_prefix_ + ':'
25579 showIndent(outfile, level, pretty_print)
25580 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25581 already_processed = set()
25582 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParamType')
25583 if self.hasContent_hasContent_():
25584 outfile.write('>%s' % (eol_, ))
25585 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParamType', pretty_print=pretty_print)
25586 showIndent(outfile, level, pretty_print)
25587 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25588 else:
25589 outfile.write('/>%s' % (eol_, ))
25590 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamType'):
25591 pass
25592 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamType', fromsubclass_=False, pretty_print=True):
25593 if not fromsubclass_:
25594 for item_ in self.content_:
25595 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
25596 if pretty_print:
25597 eol_ = '\n'
25598 else:
25599 eol_ = ''
25600 if self.ref is not None:
25601 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
25602 self.ref.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
25603 def build(self, node, gds_collector_=None):
25604 self.gds_collector_ = gds_collector_
25605 if SaveElementTreeNode:
25606 self.gds_elementtree_node_ = node
25607 already_processed = set()
25608 self.ns_prefix_ = node.prefix
25609 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25610 self.valueOf_ = get_all_text_(node)
25611 if node.text is not None:
25612 obj_ = self.mixedclass_(MixedContainer.CategoryText,
25613 MixedContainer.TypeNone, '', node.text)
25614 self.content_.append(obj_)
25615 for child in node:
25616 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25617 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25618 return self
25619 def buildAttributes(self, node, attrs, already_processed):
25620 pass
25621 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25622 if nodeName_ == 'ref':
25623 obj_ = refTextType.factory(parent_object_=self)
25624 obj_.build(child_, gds_collector_=gds_collector_)
25625 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
25626 MixedContainer.TypeNone, 'ref', obj_)
25627 self.content_.append(obj_)
25628 if hasattr(self, 'add_ref'):
25629 self.add_ref(obj_.value)
25630 elif hasattr(self, 'set_ref'):
25631 self.set_ref(obj_.value)
25632 if not fromsubclass_ and child_.tail is not None:
25633 obj_ = self.mixedclass_(MixedContainer.CategoryText,
25634 MixedContainer.TypeNone, '', child_.tail)
25635 self.content_.append(obj_)
25636# end class docParamType
25637
25638
25639class docParamName(GeneratedsSuper):
25640 __hash__ = GeneratedsSuper.__hash__
25641 subclass = None
25642 superclass = None
25643 def __init__(self, direction=None, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_):
25644 self.gds_collector_ = gds_collector_
25645 self.gds_elementtree_node_ = None
25646 self.original_tagname_ = None
25647 self.parent_object_ = kwargs_.get('parent_object_')
25648 self.ns_prefix_ = None
25649 self.direction = _cast(None, direction)
25650 self.direction_nsprefix_ = None
25651 self.ref = ref
25652 self.ref_nsprefix_ = None
25653 self.valueOf_ = valueOf_
25654 if mixedclass_ is None:
25655 self.mixedclass_ = MixedContainer
25656 else:
25657 self.mixedclass_ = mixedclass_
25658 if content_ is None:
25659 self.content_ = []
25660 else:
25661 self.content_ = content_
25662 self.valueOf_ = valueOf_
25663 def factory(*args_, **kwargs_):
25664 if CurrentSubclassModule_ is not None:
25665 subclass = getSubclassFromModule_(
25666 CurrentSubclassModule_, docParamName)
25667 if subclass is not None:
25668 return subclass(*args_, **kwargs_)
25669 if docParamName.subclass:
25670 return docParamName.subclass(*args_, **kwargs_)
25671 else:
25672 return docParamName(*args_, **kwargs_)
25673 factory = staticmethod(factory)
25675 return self.ns_prefix_
25676 def set_ns_prefix_(self, ns_prefix):
25677 self.ns_prefix_ = ns_prefix
25678 def get_ref(self):
25679 return self.ref
25680 def set_ref(self, ref):
25681 self.ref = ref
25682 def get_direction(self):
25683 return self.direction
25684 def set_direction(self, direction):
25685 self.direction = direction
25686 def get_valueOf_(self): return self.valueOf_
25687 def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
25688 def validate_DoxParamDir(self, value):
25689 # Validate type DoxParamDir, a restriction on xsd:string.
25690 if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
25691 if not isinstance(value, str):
25693 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
25694 return False
25695 value = value
25696 enumerations = ['in', 'out', 'inout']
25697 if value not in enumerations:
25699 self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxParamDir' % {"value" : encode_str_2_3(value), "lineno": lineno} )
25700 result = False
25701 def hasContent_(self):
25702 if (
25703 self.ref is not None or
25704 (1 if type(self.valueOf_) in [int,float] else self.valueOf_) or
25705 self.content_
25706 ):
25707 return True
25708 else:
25709 return False
25710 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamName', pretty_print=True):
25711 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParamName')
25712 if imported_ns_def_ is not None:
25713 namespacedef_ = imported_ns_def_
25714 if pretty_print:
25715 eol_ = '\n'
25716 else:
25717 eol_ = ''
25718 if self.original_tagname_ is not None and name_ == 'docParamName':
25719 name_ = self.original_tagname_
25720 if UseCapturedNS_ and self.ns_prefix_:
25721 namespaceprefix_ = self.ns_prefix_ + ':'
25722 showIndent(outfile, level, pretty_print)
25723 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25724 already_processed = set()
25725 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParamName')
25726 if self.hasContent_hasContent_():
25727 outfile.write('>%s' % (eol_, ))
25728 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParamName', pretty_print=pretty_print)
25729 showIndent(outfile, level, pretty_print)
25730 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25731 else:
25732 outfile.write('/>%s' % (eol_, ))
25733 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamName'):
25734 if self.direction is not None and 'direction' not in already_processed:
25735 already_processed.add('direction')
25736 outfile.write(' direction=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.direction), input_name='direction')), ))
25737 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamName', fromsubclass_=False, pretty_print=True):
25738 if not fromsubclass_:
25739 for item_ in self.content_:
25740 item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print)
25741 if pretty_print:
25742 eol_ = '\n'
25743 else:
25744 eol_ = ''
25745 if self.ref is not None:
25746 namespaceprefix_ = self.ref_nsprefix_ + ':' if (UseCapturedNS_ and self.ref_nsprefix_) else ''
25747 self.ref.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ref', pretty_print=pretty_print)
25748 def build(self, node, gds_collector_=None):
25749 self.gds_collector_ = gds_collector_
25750 if SaveElementTreeNode:
25751 self.gds_elementtree_node_ = node
25752 already_processed = set()
25753 self.ns_prefix_ = node.prefix
25754 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25755 self.valueOf_ = get_all_text_(node)
25756 if node.text is not None:
25757 obj_ = self.mixedclass_(MixedContainer.CategoryText,
25758 MixedContainer.TypeNone, '', node.text)
25759 self.content_.append(obj_)
25760 for child in node:
25761 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25762 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25763 return self
25764 def buildAttributes(self, node, attrs, already_processed):
25765 value = find_attr_value_('direction', node)
25766 if value is not None and 'direction' not in already_processed:
25767 already_processed.add('direction')
25768 self.direction = value
25769 self.validate_DoxParamDirvalidate_DoxParamDir(self.direction) # validate type DoxParamDir
25770 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25771 if nodeName_ == 'ref':
25772 obj_ = refTextType.factory(parent_object_=self)
25773 obj_.build(child_, gds_collector_=gds_collector_)
25774 obj_ = self.mixedclass_(MixedContainer.CategoryComplex,
25775 MixedContainer.TypeNone, 'ref', obj_)
25776 self.content_.append(obj_)
25777 if hasattr(self, 'add_ref'):
25778 self.add_ref(obj_.value)
25779 elif hasattr(self, 'set_ref'):
25780 self.set_refset_ref(obj_.value)
25781 if not fromsubclass_ and child_.tail is not None:
25782 obj_ = self.mixedclass_(MixedContainer.CategoryText,
25783 MixedContainer.TypeNone, '', child_.tail)
25784 self.content_.append(obj_)
25785# end class docParamName
25786
25787
25789 __hash__ = GeneratedsSuper.__hash__
25790 subclass = None
25791 superclass = None
25792 def __init__(self, id=None, xreftitle=None, xrefdescription=None, gds_collector_=None, **kwargs_):
25793 self.gds_collector_ = gds_collector_
25794 self.gds_elementtree_node_ = None
25795 self.original_tagname_ = None
25796 self.parent_object_ = kwargs_.get('parent_object_')
25797 self.ns_prefix_ = None
25798 self.id = _cast(None, id)
25799 self.id_nsprefix_ = None
25800 if xreftitle is None:
25801 self.xreftitle = []
25802 else:
25803 self.xreftitle = xreftitle
25804 self.xreftitle_nsprefix_ = None
25805 self.xrefdescription = xrefdescription
25806 self.xrefdescription_nsprefix_ = None
25807 def factory(*args_, **kwargs_):
25808 if CurrentSubclassModule_ is not None:
25809 subclass = getSubclassFromModule_(
25810 CurrentSubclassModule_, docXRefSectType)
25811 if subclass is not None:
25812 return subclass(*args_, **kwargs_)
25813 if docXRefSectType.subclass:
25814 return docXRefSectType.subclass(*args_, **kwargs_)
25815 else:
25816 return docXRefSectType(*args_, **kwargs_)
25817 factory = staticmethod(factory)
25819 return self.ns_prefix_
25820 def set_ns_prefix_(self, ns_prefix):
25821 self.ns_prefix_ = ns_prefix
25822 def get_xreftitle(self):
25823 return self.xreftitle
25824 def set_xreftitle(self, xreftitle):
25825 self.xreftitle = xreftitle
25826 def add_xreftitle(self, value):
25827 self.xreftitle.append(value)
25828 def insert_xreftitle_at(self, index, value):
25829 self.xreftitle.insert(index, value)
25830 def replace_xreftitle_at(self, index, value):
25831 self.xreftitle[index] = value
25833 return self.xrefdescription
25834 def set_xrefdescription(self, xrefdescription):
25835 self.xrefdescription = xrefdescription
25836 def get_id(self):
25837 return self.id
25838 def set_id(self, id):
25839 self.id = id
25840 def hasContent_(self):
25841 if (
25842 self.xreftitle or
25843 self.xrefdescription is not None
25844 ):
25845 return True
25846 else:
25847 return False
25848 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docXRefSectType', pretty_print=True):
25849 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docXRefSectType')
25850 if imported_ns_def_ is not None:
25851 namespacedef_ = imported_ns_def_
25852 if pretty_print:
25853 eol_ = '\n'
25854 else:
25855 eol_ = ''
25856 if self.original_tagname_ is not None and name_ == 'docXRefSectType':
25857 name_ = self.original_tagname_
25858 if UseCapturedNS_ and self.ns_prefix_:
25859 namespaceprefix_ = self.ns_prefix_ + ':'
25860 showIndent(outfile, level, pretty_print)
25861 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
25862 already_processed = set()
25863 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docXRefSectType')
25864 if self.hasContent_hasContent_():
25865 outfile.write('>%s' % (eol_, ))
25866 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docXRefSectType', pretty_print=pretty_print)
25867 showIndent(outfile, level, pretty_print)
25868 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
25869 else:
25870 outfile.write('/>%s' % (eol_, ))
25871 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docXRefSectType'):
25872 if self.id is not None and 'id' not in already_processed:
25873 already_processed.add('id')
25874 outfile.write(' id=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.id), input_name='id')), ))
25875 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docXRefSectType', fromsubclass_=False, pretty_print=True):
25876 if pretty_print:
25877 eol_ = '\n'
25878 else:
25879 eol_ = ''
25880 for xreftitle_ in self.xreftitle:
25881 namespaceprefix_ = self.xreftitle_nsprefix_ + ':' if (UseCapturedNS_ and self.xreftitle_nsprefix_) else ''
25882 showIndent(outfile, level, pretty_print)
25883 outfile.write('<%sxreftitle>%s</%sxreftitle>%s' % (namespaceprefix_ , self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_xml(xreftitle_), input_name='xreftitle')), namespaceprefix_ , eol_))
25884 if self.xrefdescription is not None:
25885 namespaceprefix_ = self.xrefdescription_nsprefix_ + ':' if (UseCapturedNS_ and self.xrefdescription_nsprefix_) else ''
25886 self.xrefdescription.export(outfile, level, namespaceprefix_, namespacedef_='', name_='xrefdescription', pretty_print=pretty_print)
25887 def build(self, node, gds_collector_=None):
25888 self.gds_collector_ = gds_collector_
25889 if SaveElementTreeNode:
25890 self.gds_elementtree_node_ = node
25891 already_processed = set()
25892 self.ns_prefix_ = node.prefix
25893 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
25894 for child in node:
25895 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
25896 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
25897 return self
25898 def buildAttributes(self, node, attrs, already_processed):
25899 value = find_attr_value_('id', node)
25900 if value is not None and 'id' not in already_processed:
25901 already_processed.add('id')
25902 self.id = value
25903 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
25904 if nodeName_ == 'xreftitle':
25905 value_ = child_.text
25906 value_ = self.gds_parse_stringgds_parse_string(value_, node, 'xreftitle')
25907 value_ = self.gds_validate_stringgds_validate_string(value_, node, 'xreftitle')
25908 self.xreftitle.append(value_)
25909 self.xreftitle_nsprefix_ = child_.prefix
25910 elif nodeName_ == 'xrefdescription':
25911 obj_ = descriptionType.factory(parent_object_=self)
25912 obj_.build(child_, gds_collector_=gds_collector_)
25913 self.xrefdescription = obj_
25914 obj_.original_tagname_ = 'xrefdescription'
25915# end class docXRefSectType
25916
25917
25919 __hash__ = GeneratedsSuper.__hash__
25920 subclass = None
25921 superclass = None
25922 def __init__(self, link=None, para=None, sect1=None, internal=None, gds_collector_=None, **kwargs_):
25923 self.gds_collector_ = gds_collector_
25924 self.gds_elementtree_node_ = None
25925 self.original_tagname_ = None
25926 self.parent_object_ = kwargs_.get('parent_object_')
25927 self.ns_prefix_ = None
25928 self.link = _cast(None, link)
25929 self.link_nsprefix_ = None
25930 if para is None:
25931 self.para = []
25932 else:
25933 self.para = para
25934 self.para_nsprefix_ = None
25935 if sect1 is None:
25936 self.sect1 = []
25937 else:
25938 self.sect1 = sect1
25939 self.sect1_nsprefix_ = None
25940 self.internal = internal
25941 self.internal_nsprefix_ = None
25942 def factory(*args_, **kwargs_):
25943 if CurrentSubclassModule_ is not None:
25944 subclass = getSubclassFromModule_(
25945 CurrentSubclassModule_, docCopyType)
25946 if subclass is not None:
25947 return subclass(*args_, **kwargs_)
25948 if docCopyType.subclass:
25949 return docCopyType.subclass(*args_, **kwargs_)
25950 else:
25951 return docCopyType(*args_, **kwargs_)
25952 factory = staticmethod(factory)
25954 return self.ns_prefix_
25955 def set_ns_prefix_(self, ns_prefix):
25956 self.ns_prefix_ = ns_prefix
25957 def get_para(self):
25958 return self.para
25959 def set_para(self, para):
25960 self.para = para
25961 def add_para(self, value):
25962 self.para.append(value)
25963 def insert_para_at(self, index, value):
25964 self.para.insert(index, value)
25965 def replace_para_at(self, index, value):
25966 self.para[index] = value
25967 def get_sect1(self):
25968 return self.sect1
25969 def set_sect1(self, sect1):
25970 self.sect1 = sect1
25971 def add_sect1(self, value):
25972 self.sect1.append(value)
25973 def insert_sect1_at(self, index, value):
25974 self.sect1.insert(index, value)
25975 def replace_sect1_at(self, index, value):
25976 self.sect1[index] = value
25977 def get_internal(self):
25978 return self.internal
25979 def set_internal(self, internal):
25980 self.internal = internal
25981 def get_link(self):
25982 return self.link
25983 def set_link(self, link):
25984 self.link = link
25985 def hasContent_(self):
25986 if (
25987 self.para or
25988 self.sect1 or
25989 self.internal is not None
25990 ):
25991 return True
25992 else:
25993 return False
25994 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCopyType', pretty_print=True):
25995 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docCopyType')
25996 if imported_ns_def_ is not None:
25997 namespacedef_ = imported_ns_def_
25998 if pretty_print:
25999 eol_ = '\n'
26000 else:
26001 eol_ = ''
26002 if self.original_tagname_ is not None and name_ == 'docCopyType':
26003 name_ = self.original_tagname_
26004 if UseCapturedNS_ and self.ns_prefix_:
26005 namespaceprefix_ = self.ns_prefix_ + ':'
26006 showIndent(outfile, level, pretty_print)
26007 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26008 already_processed = set()
26009 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docCopyType')
26010 if self.hasContent_hasContent_():
26011 outfile.write('>%s' % (eol_, ))
26012 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docCopyType', pretty_print=pretty_print)
26013 showIndent(outfile, level, pretty_print)
26014 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26015 else:
26016 outfile.write('/>%s' % (eol_, ))
26017 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docCopyType'):
26018 if self.link is not None and 'link' not in already_processed:
26019 already_processed.add('link')
26020 outfile.write(' link=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.link), input_name='link')), ))
26021 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCopyType', fromsubclass_=False, pretty_print=True):
26022 if pretty_print:
26023 eol_ = '\n'
26024 else:
26025 eol_ = ''
26026 for para_ in self.para:
26027 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
26028 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
26029 for sect1_ in self.sect1:
26030 namespaceprefix_ = self.sect1_nsprefix_ + ':' if (UseCapturedNS_ and self.sect1_nsprefix_) else ''
26031 sect1_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='sect1', pretty_print=pretty_print)
26032 if self.internal is not None:
26033 namespaceprefix_ = self.internal_nsprefix_ + ':' if (UseCapturedNS_ and self.internal_nsprefix_) else ''
26034 self.internal.export(outfile, level, namespaceprefix_, namespacedef_='', name_='internal', pretty_print=pretty_print)
26035 def build(self, node, gds_collector_=None):
26036 self.gds_collector_ = gds_collector_
26037 if SaveElementTreeNode:
26038 self.gds_elementtree_node_ = node
26039 already_processed = set()
26040 self.ns_prefix_ = node.prefix
26041 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
26042 for child in node:
26043 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26044 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26045 return self
26046 def buildAttributes(self, node, attrs, already_processed):
26047 value = find_attr_value_('link', node)
26048 if value is not None and 'link' not in already_processed:
26049 already_processed.add('link')
26050 self.link = value
26051 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26052 if nodeName_ == 'para':
26053 obj_ = docParaType.factory(parent_object_=self)
26054 obj_.build(child_, gds_collector_=gds_collector_)
26055 self.para.append(obj_)
26056 obj_.original_tagname_ = 'para'
26057 elif nodeName_ == 'sect1':
26058 obj_ = docSect1Type.factory(parent_object_=self)
26059 obj_.build(child_, gds_collector_=gds_collector_)
26060 self.sect1.append(obj_)
26061 obj_.original_tagname_ = 'sect1'
26062 elif nodeName_ == 'internal':
26063 obj_ = docInternalType.factory(parent_object_=self)
26064 obj_.build(child_, gds_collector_=gds_collector_)
26065 self.internal = obj_
26066 obj_.original_tagname_ = 'internal'
26067# end class docCopyType
26068
26069
26071 __hash__ = GeneratedsSuper.__hash__
26072 subclass = None
26073 superclass = None
26074 def __init__(self, summary=None, para=None, gds_collector_=None, **kwargs_):
26075 self.gds_collector_ = gds_collector_
26076 self.gds_elementtree_node_ = None
26077 self.original_tagname_ = None
26078 self.parent_object_ = kwargs_.get('parent_object_')
26079 self.ns_prefix_ = None
26080 self.summary = summary
26081 self.summary_nsprefix_ = None
26082 if para is None:
26083 self.para = []
26084 else:
26085 self.para = para
26086 self.para_nsprefix_ = None
26087 def factory(*args_, **kwargs_):
26088 if CurrentSubclassModule_ is not None:
26089 subclass = getSubclassFromModule_(
26090 CurrentSubclassModule_, docDetailsType)
26091 if subclass is not None:
26092 return subclass(*args_, **kwargs_)
26093 if docDetailsType.subclass:
26094 return docDetailsType.subclass(*args_, **kwargs_)
26095 else:
26096 return docDetailsType(*args_, **kwargs_)
26097 factory = staticmethod(factory)
26099 return self.ns_prefix_
26100 def set_ns_prefix_(self, ns_prefix):
26101 self.ns_prefix_ = ns_prefix
26102 def get_summary(self):
26103 return self.summary
26104 def set_summary(self, summary):
26105 self.summary = summary
26106 def get_para(self):
26107 return self.para
26108 def set_para(self, para):
26109 self.para = para
26110 def add_para(self, value):
26111 self.para.append(value)
26112 def insert_para_at(self, index, value):
26113 self.para.insert(index, value)
26114 def replace_para_at(self, index, value):
26115 self.para[index] = value
26116 def hasContent_(self):
26117 if (
26118 self.summary is not None or
26119 self.para
26120 ):
26121 return True
26122 else:
26123 return False
26124 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDetailsType', pretty_print=True):
26125 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docDetailsType')
26126 if imported_ns_def_ is not None:
26127 namespacedef_ = imported_ns_def_
26128 if pretty_print:
26129 eol_ = '\n'
26130 else:
26131 eol_ = ''
26132 if self.original_tagname_ is not None and name_ == 'docDetailsType':
26133 name_ = self.original_tagname_
26134 if UseCapturedNS_ and self.ns_prefix_:
26135 namespaceprefix_ = self.ns_prefix_ + ':'
26136 showIndent(outfile, level, pretty_print)
26137 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26138 already_processed = set()
26139 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docDetailsType')
26140 if self.hasContent_hasContent_():
26141 outfile.write('>%s' % (eol_, ))
26142 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docDetailsType', pretty_print=pretty_print)
26143 showIndent(outfile, level, pretty_print)
26144 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26145 else:
26146 outfile.write('/>%s' % (eol_, ))
26147 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docDetailsType'):
26148 pass
26149 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDetailsType', fromsubclass_=False, pretty_print=True):
26150 if pretty_print:
26151 eol_ = '\n'
26152 else:
26153 eol_ = ''
26154 if self.summary is not None:
26155 namespaceprefix_ = self.summary_nsprefix_ + ':' if (UseCapturedNS_ and self.summary_nsprefix_) else ''
26156 self.summary.export(outfile, level, namespaceprefix_, namespacedef_='', name_='summary', pretty_print=pretty_print)
26157 for para_ in self.para:
26158 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
26159 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
26160 def build(self, node, gds_collector_=None):
26161 self.gds_collector_ = gds_collector_
26162 if SaveElementTreeNode:
26163 self.gds_elementtree_node_ = node
26164 already_processed = set()
26165 self.ns_prefix_ = node.prefix
26166 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
26167 for child in node:
26168 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26169 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26170 return self
26171 def buildAttributes(self, node, attrs, already_processed):
26172 pass
26173 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26174 if nodeName_ == 'summary':
26175 obj_ = docSummaryType.factory(parent_object_=self)
26176 obj_.build(child_, gds_collector_=gds_collector_)
26177 self.summary = obj_
26178 obj_.original_tagname_ = 'summary'
26179 elif nodeName_ == 'para':
26180 obj_ = docParaType.factory(parent_object_=self)
26181 obj_.build(child_, gds_collector_=gds_collector_)
26182 self.para.append(obj_)
26183 obj_.original_tagname_ = 'para'
26184# end class docDetailsType
26185
26186
26187class docBlockQuoteType(GeneratedsSuper):
26188 __hash__ = GeneratedsSuper.__hash__
26189 subclass = None
26190 superclass = None
26191 def __init__(self, para=None, gds_collector_=None, **kwargs_):
26192 self.gds_collector_ = gds_collector_
26193 self.gds_elementtree_node_ = None
26194 self.original_tagname_ = None
26195 self.parent_object_ = kwargs_.get('parent_object_')
26196 self.ns_prefix_ = None
26197 if para is None:
26198 self.para = []
26199 else:
26200 self.para = para
26201 self.para_nsprefix_ = None
26202 def factory(*args_, **kwargs_):
26203 if CurrentSubclassModule_ is not None:
26204 subclass = getSubclassFromModule_(
26205 CurrentSubclassModule_, docBlockQuoteType)
26206 if subclass is not None:
26207 return subclass(*args_, **kwargs_)
26208 if docBlockQuoteType.subclass:
26209 return docBlockQuoteType.subclass(*args_, **kwargs_)
26210 else:
26211 return docBlockQuoteType(*args_, **kwargs_)
26212 factory = staticmethod(factory)
26214 return self.ns_prefix_
26215 def set_ns_prefix_(self, ns_prefix):
26216 self.ns_prefix_ = ns_prefix
26217 def get_para(self):
26218 return self.para
26219 def set_para(self, para):
26220 self.para = para
26221 def add_para(self, value):
26222 self.para.append(value)
26223 def insert_para_at(self, index, value):
26224 self.para.insert(index, value)
26225 def replace_para_at(self, index, value):
26226 self.para[index] = value
26227 def hasContent_(self):
26228 if (
26229 self.para
26230 ):
26231 return True
26232 else:
26233 return False
26234 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docBlockQuoteType', pretty_print=True):
26235 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docBlockQuoteType')
26236 if imported_ns_def_ is not None:
26237 namespacedef_ = imported_ns_def_
26238 if pretty_print:
26239 eol_ = '\n'
26240 else:
26241 eol_ = ''
26242 if self.original_tagname_ is not None and name_ == 'docBlockQuoteType':
26243 name_ = self.original_tagname_
26244 if UseCapturedNS_ and self.ns_prefix_:
26245 namespaceprefix_ = self.ns_prefix_ + ':'
26246 showIndent(outfile, level, pretty_print)
26247 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26248 already_processed = set()
26249 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docBlockQuoteType')
26250 if self.hasContent_hasContent_():
26251 outfile.write('>%s' % (eol_, ))
26252 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docBlockQuoteType', pretty_print=pretty_print)
26253 showIndent(outfile, level, pretty_print)
26254 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26255 else:
26256 outfile.write('/>%s' % (eol_, ))
26257 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docBlockQuoteType'):
26258 pass
26259 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docBlockQuoteType', fromsubclass_=False, pretty_print=True):
26260 if pretty_print:
26261 eol_ = '\n'
26262 else:
26263 eol_ = ''
26264 for para_ in self.para:
26265 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
26266 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
26267 def build(self, node, gds_collector_=None):
26268 self.gds_collector_ = gds_collector_
26269 if SaveElementTreeNode:
26270 self.gds_elementtree_node_ = node
26271 already_processed = set()
26272 self.ns_prefix_ = node.prefix
26273 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
26274 for child in node:
26275 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26276 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26277 return self
26278 def buildAttributes(self, node, attrs, already_processed):
26279 pass
26280 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26281 if nodeName_ == 'para':
26282 obj_ = docParaType.factory(parent_object_=self)
26283 obj_.build(child_, gds_collector_=gds_collector_)
26284 self.para.append(obj_)
26285 obj_.original_tagname_ = 'para'
26286# end class docBlockQuoteType
26287
26288
26289class docParBlockType(GeneratedsSuper):
26290 __hash__ = GeneratedsSuper.__hash__
26291 subclass = None
26292 superclass = None
26293 def __init__(self, para=None, gds_collector_=None, **kwargs_):
26294 self.gds_collector_ = gds_collector_
26295 self.gds_elementtree_node_ = None
26296 self.original_tagname_ = None
26297 self.parent_object_ = kwargs_.get('parent_object_')
26298 self.ns_prefix_ = None
26299 if para is None:
26300 self.para = []
26301 else:
26302 self.para = para
26303 self.para_nsprefix_ = None
26304 def factory(*args_, **kwargs_):
26305 if CurrentSubclassModule_ is not None:
26306 subclass = getSubclassFromModule_(
26307 CurrentSubclassModule_, docParBlockType)
26308 if subclass is not None:
26309 return subclass(*args_, **kwargs_)
26310 if docParBlockType.subclass:
26311 return docParBlockType.subclass(*args_, **kwargs_)
26312 else:
26313 return docParBlockType(*args_, **kwargs_)
26314 factory = staticmethod(factory)
26316 return self.ns_prefix_
26317 def set_ns_prefix_(self, ns_prefix):
26318 self.ns_prefix_ = ns_prefix
26319 def get_para(self):
26320 return self.para
26321 def set_para(self, para):
26322 self.para = para
26323 def add_para(self, value):
26324 self.para.append(value)
26325 def insert_para_at(self, index, value):
26326 self.para.insert(index, value)
26327 def replace_para_at(self, index, value):
26328 self.para[index] = value
26329 def hasContent_(self):
26330 if (
26331 self.para
26332 ):
26333 return True
26334 else:
26335 return False
26336 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParBlockType', pretty_print=True):
26337 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docParBlockType')
26338 if imported_ns_def_ is not None:
26339 namespacedef_ = imported_ns_def_
26340 if pretty_print:
26341 eol_ = '\n'
26342 else:
26343 eol_ = ''
26344 if self.original_tagname_ is not None and name_ == 'docParBlockType':
26345 name_ = self.original_tagname_
26346 if UseCapturedNS_ and self.ns_prefix_:
26347 namespaceprefix_ = self.ns_prefix_ + ':'
26348 showIndent(outfile, level, pretty_print)
26349 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26350 already_processed = set()
26351 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docParBlockType')
26352 if self.hasContent_hasContent_():
26353 outfile.write('>%s' % (eol_, ))
26354 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docParBlockType', pretty_print=pretty_print)
26355 showIndent(outfile, level, pretty_print)
26356 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26357 else:
26358 outfile.write('/>%s' % (eol_, ))
26359 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParBlockType'):
26360 pass
26361 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParBlockType', fromsubclass_=False, pretty_print=True):
26362 if pretty_print:
26363 eol_ = '\n'
26364 else:
26365 eol_ = ''
26366 for para_ in self.para:
26367 namespaceprefix_ = self.para_nsprefix_ + ':' if (UseCapturedNS_ and self.para_nsprefix_) else ''
26368 para_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='para', pretty_print=pretty_print)
26369 def build(self, node, gds_collector_=None):
26370 self.gds_collector_ = gds_collector_
26371 if SaveElementTreeNode:
26372 self.gds_elementtree_node_ = node
26373 already_processed = set()
26374 self.ns_prefix_ = node.prefix
26375 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
26376 for child in node:
26377 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26378 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26379 return self
26380 def buildAttributes(self, node, attrs, already_processed):
26381 pass
26382 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26383 if nodeName_ == 'para':
26384 obj_ = docParaType.factory(parent_object_=self)
26385 obj_.build(child_, gds_collector_=gds_collector_)
26386 self.para.append(obj_)
26387 obj_.original_tagname_ = 'para'
26388# end class docParBlockType
26389
26390
26391class docEmptyType(GeneratedsSuper):
26392 __hash__ = GeneratedsSuper.__hash__
26393 subclass = None
26394 superclass = None
26395 def __init__(self, gds_collector_=None, **kwargs_):
26396 self.gds_collector_ = gds_collector_
26397 self.gds_elementtree_node_ = None
26398 self.original_tagname_ = None
26399 self.parent_object_ = kwargs_.get('parent_object_')
26400 self.ns_prefix_ = None
26401 def factory(*args_, **kwargs_):
26402 if CurrentSubclassModule_ is not None:
26403 subclass = getSubclassFromModule_(
26404 CurrentSubclassModule_, docEmptyType)
26405 if subclass is not None:
26406 return subclass(*args_, **kwargs_)
26407 if docEmptyType.subclass:
26408 return docEmptyType.subclass(*args_, **kwargs_)
26409 else:
26410 return docEmptyType(*args_, **kwargs_)
26411 factory = staticmethod(factory)
26413 return self.ns_prefix_
26414 def set_ns_prefix_(self, ns_prefix):
26415 self.ns_prefix_ = ns_prefix
26416 def hasContent_(self):
26417 if (
26418
26419 ):
26420 return True
26421 else:
26422 return False
26423 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmptyType', pretty_print=True):
26424 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docEmptyType')
26425 if imported_ns_def_ is not None:
26426 namespacedef_ = imported_ns_def_
26427 if pretty_print:
26428 eol_ = '\n'
26429 else:
26430 eol_ = ''
26431 if self.original_tagname_ is not None and name_ == 'docEmptyType':
26432 name_ = self.original_tagname_
26433 if UseCapturedNS_ and self.ns_prefix_:
26434 namespaceprefix_ = self.ns_prefix_ + ':'
26435 showIndent(outfile, level, pretty_print)
26436 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26437 already_processed = set()
26438 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docEmptyType')
26439 if self.hasContent_hasContent_():
26440 outfile.write('>%s' % (eol_, ))
26441 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docEmptyType', pretty_print=pretty_print)
26442 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26443 else:
26444 outfile.write('/>%s' % (eol_, ))
26445 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docEmptyType'):
26446 pass
26447 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmptyType', fromsubclass_=False, pretty_print=True):
26448 pass
26449 def build(self, node, gds_collector_=None):
26450 self.gds_collector_ = gds_collector_
26451 if SaveElementTreeNode:
26452 self.gds_elementtree_node_ = node
26453 already_processed = set()
26454 self.ns_prefix_ = node.prefix
26455 self.buildAttributes(node, node.attrib, already_processed)
26456 for child in node:
26457 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26458 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26459 return self
26460 def buildAttributes(self, node, attrs, already_processed):
26461 pass
26462 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26463 pass
26464# end class docEmptyType
26465
26466
26467class tableofcontentsType(GeneratedsSuper):
26468 __hash__ = GeneratedsSuper.__hash__
26469 subclass = None
26470 superclass = None
26471 def __init__(self, tocsect=None, gds_collector_=None, **kwargs_):
26472 self.gds_collector_ = gds_collector_
26473 self.gds_elementtree_node_ = None
26474 self.original_tagname_ = None
26475 self.parent_object_ = kwargs_.get('parent_object_')
26476 self.ns_prefix_ = None
26477 if tocsect is None:
26478 self.tocsect = []
26479 else:
26480 self.tocsect = tocsect
26481 self.tocsect_nsprefix_ = None
26482 def factory(*args_, **kwargs_):
26483 if CurrentSubclassModule_ is not None:
26484 subclass = getSubclassFromModule_(
26485 CurrentSubclassModule_, tableofcontentsType)
26486 if subclass is not None:
26487 return subclass(*args_, **kwargs_)
26488 if tableofcontentsType.subclass:
26489 return tableofcontentsType.subclass(*args_, **kwargs_)
26490 else:
26491 return tableofcontentsType(*args_, **kwargs_)
26492 factory = staticmethod(factory)
26494 return self.ns_prefix_
26495 def set_ns_prefix_(self, ns_prefix):
26496 self.ns_prefix_ = ns_prefix
26497 def get_tocsect(self):
26498 return self.tocsect
26499 def set_tocsect(self, tocsect):
26500 self.tocsect = tocsect
26501 def add_tocsect(self, value):
26502 self.tocsect.append(value)
26503 def insert_tocsect_at(self, index, value):
26504 self.tocsect.insert(index, value)
26505 def replace_tocsect_at(self, index, value):
26506 self.tocsect[index] = value
26507 def hasContent_(self):
26508 if (
26509 self.tocsect
26510 ):
26511 return True
26512 else:
26513 return False
26514 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsType', pretty_print=True):
26515 imported_ns_def_ = GenerateDSNamespaceDefs_.get('tableofcontentsType')
26516 if imported_ns_def_ is not None:
26517 namespacedef_ = imported_ns_def_
26518 if pretty_print:
26519 eol_ = '\n'
26520 else:
26521 eol_ = ''
26522 if self.original_tagname_ is not None and name_ == 'tableofcontentsType':
26523 name_ = self.original_tagname_
26524 if UseCapturedNS_ and self.ns_prefix_:
26525 namespaceprefix_ = self.ns_prefix_ + ':'
26526 showIndent(outfile, level, pretty_print)
26527 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26528 already_processed = set()
26529 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='tableofcontentsType')
26530 if self.hasContent_hasContent_():
26531 outfile.write('>%s' % (eol_, ))
26532 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='tableofcontentsType', pretty_print=pretty_print)
26533 showIndent(outfile, level, pretty_print)
26534 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26535 else:
26536 outfile.write('/>%s' % (eol_, ))
26537 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='tableofcontentsType'):
26538 pass
26539 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsType', fromsubclass_=False, pretty_print=True):
26540 if pretty_print:
26541 eol_ = '\n'
26542 else:
26543 eol_ = ''
26544 for tocsect_ in self.tocsect:
26545 namespaceprefix_ = self.tocsect_nsprefix_ + ':' if (UseCapturedNS_ and self.tocsect_nsprefix_) else ''
26546 tocsect_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='tocsect', pretty_print=pretty_print)
26547 def build(self, node, gds_collector_=None):
26548 self.gds_collector_ = gds_collector_
26549 if SaveElementTreeNode:
26550 self.gds_elementtree_node_ = node
26551 already_processed = set()
26552 self.ns_prefix_ = node.prefix
26553 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
26554 for child in node:
26555 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26556 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26557 return self
26558 def buildAttributes(self, node, attrs, already_processed):
26559 pass
26560 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26561 if nodeName_ == 'tocsect':
26562 obj_ = tableofcontentsKindType.factory(parent_object_=self)
26563 obj_.build(child_, gds_collector_=gds_collector_)
26564 self.tocsect.append(obj_)
26565 obj_.original_tagname_ = 'tocsect'
26566# end class tableofcontentsType
26567
26568
26569class tableofcontentsKindType(GeneratedsSuper):
26570 __hash__ = GeneratedsSuper.__hash__
26571 subclass = None
26572 superclass = None
26573 def __init__(self, name=None, reference=None, tableofcontents=None, gds_collector_=None, **kwargs_):
26574 self.gds_collector_ = gds_collector_
26575 self.gds_elementtree_node_ = None
26576 self.original_tagname_ = None
26577 self.parent_object_ = kwargs_.get('parent_object_')
26578 self.ns_prefix_ = None
26579 self.name = name
26580 self.name_nsprefix_ = None
26581 self.reference = reference
26582 self.reference_nsprefix_ = None
26583 if tableofcontents is None:
26584 self.tableofcontents = []
26585 else:
26586 self.tableofcontents = tableofcontents
26587 self.tableofcontents_nsprefix_ = None
26588 def factory(*args_, **kwargs_):
26589 if CurrentSubclassModule_ is not None:
26590 subclass = getSubclassFromModule_(
26591 CurrentSubclassModule_, tableofcontentsKindType)
26592 if subclass is not None:
26593 return subclass(*args_, **kwargs_)
26594 if tableofcontentsKindType.subclass:
26595 return tableofcontentsKindType.subclass(*args_, **kwargs_)
26596 else:
26597 return tableofcontentsKindType(*args_, **kwargs_)
26598 factory = staticmethod(factory)
26600 return self.ns_prefix_
26601 def set_ns_prefix_(self, ns_prefix):
26602 self.ns_prefix_ = ns_prefix
26603 def get_name(self):
26604 return self.name
26605 def set_name(self, name):
26606 self.name = name
26607 def get_reference(self):
26608 return self.reference
26609 def set_reference(self, reference):
26610 self.reference = reference
26612 return self.tableofcontents
26613 def set_tableofcontents(self, tableofcontents):
26614 self.tableofcontents = tableofcontents
26615 def add_tableofcontents(self, value):
26616 self.tableofcontents.append(value)
26617 def insert_tableofcontents_at(self, index, value):
26618 self.tableofcontents.insert(index, value)
26619 def replace_tableofcontents_at(self, index, value):
26620 self.tableofcontents[index] = value
26621 def hasContent_(self):
26622 if (
26623 self.name is not None or
26624 self.reference is not None or
26625 self.tableofcontents
26626 ):
26627 return True
26628 else:
26629 return False
26630 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsKindType', pretty_print=True):
26631 imported_ns_def_ = GenerateDSNamespaceDefs_.get('tableofcontentsKindType')
26632 if imported_ns_def_ is not None:
26633 namespacedef_ = imported_ns_def_
26634 if pretty_print:
26635 eol_ = '\n'
26636 else:
26637 eol_ = ''
26638 if self.original_tagname_ is not None and name_ == 'tableofcontentsKindType':
26639 name_ = self.original_tagname_
26640 if UseCapturedNS_ and self.ns_prefix_:
26641 namespaceprefix_ = self.ns_prefix_ + ':'
26642 showIndent(outfile, level, pretty_print)
26643 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26644 already_processed = set()
26645 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='tableofcontentsKindType')
26646 if self.hasContent_hasContent_():
26647 outfile.write('>%s' % (eol_, ))
26648 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='tableofcontentsKindType', pretty_print=pretty_print)
26649 showIndent(outfile, level, pretty_print)
26650 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26651 else:
26652 outfile.write('/>%s' % (eol_, ))
26653 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='tableofcontentsKindType'):
26654 pass
26655 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsKindType', fromsubclass_=False, pretty_print=True):
26656 if pretty_print:
26657 eol_ = '\n'
26658 else:
26659 eol_ = ''
26660 if self.name is not None:
26661 namespaceprefix_ = self.name_nsprefix_ + ':' if (UseCapturedNS_ and self.name_nsprefix_) else ''
26662 showIndent(outfile, level, pretty_print)
26663 outfile.write('<%sname>%s</%sname>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.name), input_name='name')), namespaceprefix_ , eol_))
26664 if self.reference is not None:
26665 namespaceprefix_ = self.reference_nsprefix_ + ':' if (UseCapturedNS_ and self.reference_nsprefix_) else ''
26666 showIndent(outfile, level, pretty_print)
26667 outfile.write('<%sreference>%s</%sreference>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.reference), input_name='reference')), namespaceprefix_ , eol_))
26668 for tableofcontents_ in self.tableofcontents:
26669 namespaceprefix_ = self.tableofcontents_nsprefix_ + ':' if (UseCapturedNS_ and self.tableofcontents_nsprefix_) else ''
26670 tableofcontents_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='tableofcontents', pretty_print=pretty_print)
26671 def build(self, node, gds_collector_=None):
26672 self.gds_collector_ = gds_collector_
26673 if SaveElementTreeNode:
26674 self.gds_elementtree_node_ = node
26675 already_processed = set()
26676 self.ns_prefix_ = node.prefix
26677 self.buildAttributesbuildAttributes(node, node.attrib, already_processed)
26678 for child in node:
26679 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26680 self.buildChildrenbuildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26681 return self
26682 def buildAttributes(self, node, attrs, already_processed):
26683 pass
26684 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26685 if nodeName_ == 'name':
26686 value_ = child_.text
26687 value_ = self.gds_parse_string(value_, node, 'name')
26688 value_ = self.gds_validate_string(value_, node, 'name')
26689 self.name = value_
26690 self.name_nsprefix_ = child_.prefix
26691 elif nodeName_ == 'reference':
26692 value_ = child_.text
26693 value_ = self.gds_parse_string(value_, node, 'reference')
26694 value_ = self.gds_validate_string(value_, node, 'reference')
26695 self.reference = value_
26696 self.reference_nsprefix_ = child_.prefix
26697 elif nodeName_ == 'tableofcontents':
26698 obj_ = tableofcontentsType.factory(parent_object_=self)
26699 obj_.build(child_, gds_collector_=gds_collector_)
26700 self.tableofcontents.append(obj_)
26701 obj_.original_tagname_ = 'tableofcontents'
26702# end class tableofcontentsKindType
26703
26704
26705class docEmojiType(GeneratedsSuper):
26706 __hash__ = GeneratedsSuper.__hash__
26707 subclass = None
26708 superclass = None
26709 def __init__(self, name=None, unicode=None, gds_collector_=None, **kwargs_):
26710 self.gds_collector_ = gds_collector_
26711 self.gds_elementtree_node_ = None
26712 self.original_tagname_ = None
26713 self.parent_object_ = kwargs_.get('parent_object_')
26714 self.ns_prefix_ = None
26715 self.name = _cast(None, name)
26716 self.name_nsprefix_ = None
26717 self.unicode = _cast(None, unicode)
26718 self.unicode_nsprefix_ = None
26719 def factory(*args_, **kwargs_):
26720 if CurrentSubclassModule_ is not None:
26721 subclass = getSubclassFromModule_(
26722 CurrentSubclassModule_, docEmojiType)
26723 if subclass is not None:
26724 return subclass(*args_, **kwargs_)
26725 if docEmojiType.subclass:
26726 return docEmojiType.subclass(*args_, **kwargs_)
26727 else:
26728 return docEmojiType(*args_, **kwargs_)
26729 factory = staticmethod(factory)
26731 return self.ns_prefix_
26732 def set_ns_prefix_(self, ns_prefix):
26733 self.ns_prefix_ = ns_prefix
26734 def get_name(self):
26735 return self.name
26736 def set_name(self, name):
26737 self.name = name
26738 def get_unicode(self):
26739 return self.unicode
26740 def set_unicode(self, unicode):
26741 self.unicode = unicode
26742 def hasContent_(self):
26743 if (
26744
26745 ):
26746 return True
26747 else:
26748 return False
26749 def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmojiType', pretty_print=True):
26750 imported_ns_def_ = GenerateDSNamespaceDefs_.get('docEmojiType')
26751 if imported_ns_def_ is not None:
26752 namespacedef_ = imported_ns_def_
26753 if pretty_print:
26754 eol_ = '\n'
26755 else:
26756 eol_ = ''
26757 if self.original_tagname_ is not None and name_ == 'docEmojiType':
26758 name_ = self.original_tagname_
26759 if UseCapturedNS_ and self.ns_prefix_:
26760 namespaceprefix_ = self.ns_prefix_ + ':'
26761 showIndent(outfile, level, pretty_print)
26762 outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', ))
26763 already_processed = set()
26764 self.exportAttributesexportAttributes(outfile, level, already_processed, namespaceprefix_, name_='docEmojiType')
26765 if self.hasContent_hasContent_():
26766 outfile.write('>%s' % (eol_, ))
26767 self.exportChildrenexportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='docEmojiType', pretty_print=pretty_print)
26768 outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_))
26769 else:
26770 outfile.write('/>%s' % (eol_, ))
26771 def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docEmojiType'):
26772 if self.name is not None and 'name' not in already_processed:
26773 already_processed.add('name')
26774 outfile.write(' name=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.name), input_name='name')), ))
26775 if self.unicode is not None and 'unicode' not in already_processed:
26776 already_processed.add('unicode')
26777 outfile.write(' unicode=%s' % (self.gds_encodegds_encode(self.gds_format_stringgds_format_string(quote_attrib(self.unicode), input_name='unicode')), ))
26778 def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmojiType', fromsubclass_=False, pretty_print=True):
26779 pass
26780 def build(self, node, gds_collector_=None):
26781 self.gds_collector_ = gds_collector_
26782 if SaveElementTreeNode:
26783 self.gds_elementtree_node_ = node
26784 already_processed = set()
26785 self.ns_prefix_ = node.prefix
26786 self.buildAttributes(node, node.attrib, already_processed)
26787 for child in node:
26788 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
26789 self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
26790 return self
26791 def buildAttributes(self, node, attrs, already_processed):
26792 value = find_attr_value_('name', node)
26793 if value is not None and 'name' not in already_processed:
26794 already_processed.add('name')
26795 self.name = value
26796 value = find_attr_value_('unicode', node)
26797 if value is not None and 'unicode' not in already_processed:
26798 already_processed.add('unicode')
26799 self.unicode = value
26800 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
26801 pass
26802# end class docEmojiType
26803
26804
26805GDSClassesMapping = {
26806 'doxygen': DoxygenType,
26807}
26808
26809
26810USAGE_TEXT = """
26811Usage: python <Parser>.py [ -s ] <in_xml_file>
26812"""
26813
26814
26815def usage():
26816 print(USAGE_TEXT)
26817 sys.exit(1)
26818
26819
26820def get_root_tag(node):
26821 tag = Tag_pattern_.match(node.tag).groups()[-1]
26822 rootClass = GDSClassesMapping.get(tag)
26823 if rootClass is None:
26824 rootClass = globals().get(tag)
26825 return tag, rootClass
26826
26827
26828def get_required_ns_prefix_defs(rootNode):
26829 '''Get all name space prefix definitions required in this XML doc.
26830 Return a dictionary of definitions and a char string of definitions.
26831 '''
26832 nsmap = {
26833 prefix: uri
26834 for node in rootNode.iter()
26835 for (prefix, uri) in node.nsmap.items()
26836 if prefix is not None
26837 }
26838 namespacedefs = ' '.join([
26839 'xmlns:{}="{}"'.format(prefix, uri)
26840 for prefix, uri in nsmap.items()
26841 ])
26842 return nsmap, namespacedefs
26843
26844
26845def parse(inFileName, silence=False, print_warnings=True):
26846 global CapturedNsmap_
26847 gds_collector = GdsCollector_()
26848 parser = None
26849 doc = parsexml_(inFileName, parser)
26850 rootNode = doc.getroot()
26851 rootTag, rootClass = get_root_tag(rootNode)
26852 if rootClass is None:
26853 rootTag = 'DoxygenType'
26854 rootClass = DoxygenType
26855 rootObj = rootClass.factory()
26856 rootObj.build(rootNode, gds_collector_=gds_collector)
26857 CapturedNsmap_, namespacedefs = get_required_ns_prefix_defs(rootNode)
26858 if not SaveElementTreeNode:
26859 doc = None
26860 rootNode = None
26861 if not silence:
26862 sys.stdout.write('<?xml version="1.0" ?>\n')
26863 rootObj.export(
26864 sys.stdout, 0, name_=rootTag,
26865 namespacedef_=namespacedefs,
26866 pretty_print=True)
26867 if print_warnings and len(gds_collector.get_messages()) > 0:
26868 separator = ('-' * 50) + '\n'
26869 sys.stderr.write(separator)
26870 sys.stderr.write('----- Warnings -- count: {} -----\n'.format(
26871 len(gds_collector.get_messages()), ))
26872 gds_collector.write_messages(sys.stderr)
26873 sys.stderr.write(separator)
26874 return rootObj
26875
26876
26877def parseEtree(inFileName, silence=False, print_warnings=True,
26878 mapping=None, nsmap=None):
26879 parser = None
26880 doc = parsexml_(inFileName, parser)
26881 gds_collector = GdsCollector_()
26882 rootNode = doc.getroot()
26883 rootTag, rootClass = get_root_tag(rootNode)
26884 if rootClass is None:
26885 rootTag = 'DoxygenType'
26886 rootClass = DoxygenType
26887 rootObj = rootClass.factory()
26888 rootObj.build(rootNode, gds_collector_=gds_collector)
26889 # Enable Python to collect the space used by the DOM.
26890 if mapping is None:
26891 mapping = {}
26892 rootElement = rootObj.to_etree(
26893 None, name_=rootTag, mapping_=mapping, nsmap_=nsmap)
26894 reverse_mapping = rootObj.gds_reverse_node_mapping(mapping)
26895 if not SaveElementTreeNode:
26896 doc = None
26897 rootNode = None
26898 if not silence:
26899 content = etree_.tostring(
26900 rootElement, pretty_print=True,
26901 xml_declaration=True, encoding="utf-8")
26902 sys.stdout.write(str(content))
26903 sys.stdout.write('\n')
26904 if print_warnings and len(gds_collector.get_messages()) > 0:
26905 separator = ('-' * 50) + '\n'
26906 sys.stderr.write(separator)
26907 sys.stderr.write('----- Warnings -- count: {} -----\n'.format(
26908 len(gds_collector.get_messages()), ))
26909 gds_collector.write_messages(sys.stderr)
26910 sys.stderr.write(separator)
26911 return rootObj, rootElement, mapping, reverse_mapping
26912
26913
26914def parseString(inString, silence=False, print_warnings=True):
26915 '''Parse a string, create the object tree, and export it.
26916
26917 Arguments:
26918 - inString -- A string. This XML fragment should not start
26919 with an XML declaration containing an encoding.
26920 - silence -- A boolean. If False, export the object.
26921 Returns -- The root object in the tree.
26922 '''
26923 parser = None
26924 rootNode= parsexmlstring_(inString, parser)
26925 gds_collector = GdsCollector_()
26926 rootTag, rootClass = get_root_tag(rootNode)
26927 if rootClass is None:
26928 rootTag = 'DoxygenType'
26929 rootClass = DoxygenType
26930 rootObj = rootClass.factory()
26931 rootObj.build(rootNode, gds_collector_=gds_collector)
26932 if not SaveElementTreeNode:
26933 rootNode = None
26934 if not silence:
26935 sys.stdout.write('<?xml version="1.0" ?>\n')
26936 rootObj.export(
26937 sys.stdout, 0, name_=rootTag,
26938 namespacedef_='')
26939 if print_warnings and len(gds_collector.get_messages()) > 0:
26940 separator = ('-' * 50) + '\n'
26941 sys.stderr.write(separator)
26942 sys.stderr.write('----- Warnings -- count: {} -----\n'.format(
26943 len(gds_collector.get_messages()), ))
26944 gds_collector.write_messages(sys.stderr)
26945 sys.stderr.write(separator)
26946 return rootObj
26947
26948
26949def parseLiteral(inFileName, silence=False, print_warnings=True):
26950 parser = None
26951 doc = parsexml_(inFileName, parser)
26952 gds_collector = GdsCollector_()
26953 rootNode = doc.getroot()
26954 rootTag, rootClass = get_root_tag(rootNode)
26955 if rootClass is None:
26956 rootTag = 'DoxygenType'
26957 rootClass = DoxygenType
26958 rootObj = rootClass.factory()
26959 rootObj.build(rootNode, gds_collector_=gds_collector)
26960 # Enable Python to collect the space used by the DOM.
26961 if not SaveElementTreeNode:
26962 doc = None
26963 rootNode = None
26964 if not silence:
26965 sys.stdout.write('#from compound import *\n\n')
26966 sys.stdout.write('import compound as model_\n\n')
26967 sys.stdout.write('rootObj = model_.rootClass(\n')
26968 rootObj.exportLiteral(sys.stdout, 0, name_=rootTag)
26969 sys.stdout.write(')\n')
26970 if print_warnings and len(gds_collector.get_messages()) > 0:
26971 separator = ('-' * 50) + '\n'
26972 sys.stderr.write(separator)
26973 sys.stderr.write('----- Warnings -- count: {} -----\n'.format(
26974 len(gds_collector.get_messages()), ))
26975 gds_collector.write_messages(sys.stderr)
26976 sys.stderr.write(separator)
26977 return rootObj
26978
26979
26980def main():
26981 args = sys.argv[1:]
26982 if len(args) == 1:
26983 parse(args[0])
26984 else:
26985 usage()
26986
26987
26988if __name__ == '__main__':
26989 #import pdb; pdb.set_trace()
26990 main()
26991
26992RenameMappings_ = {
26993}
26994
26995#
26996# Mapping of namespaces to types defined in them
26997# and the file in which each is defined.
26998# simpleTypes are marked "ST" and complexTypes "CT".
26999NamespaceToDefMappings_ = {'http://www.w3.org/XML/1998/namespace': []}
27000
27001__all__ = [
27002 "DoxygenType",
27003 "argsstring",
27004 "array",
27005 "attributes",
27006 "bitfield",
27007 "childnodeType",
27008 "codelineType",
27009 "compoundRefType",
27010 "compounddefType",
27011 "declname",
27012 "definition",
27013 "defname",
27014 "descriptionType",
27015 "docAnchorType",
27016 "docBlockQuoteType",
27017 "docCaptionType",
27018 "docCopyType",
27019 "docDetailsType",
27020 "docDotMscType",
27021 "docEmojiType",
27022 "docEmptyType",
27023 "docEntryType",
27024 "docFormulaType",
27025 "docHeadingType",
27026 "docHtmlOnlyType",
27027 "docImageFileType",
27028 "docImageType",
27029 "docIndexEntryType",
27030 "docInternalS1Type",
27031 "docInternalS2Type",
27032 "docInternalS3Type",
27033 "docInternalS4Type",
27034 "docInternalType",
27035 "docLanguageType",
27036 "docListItemType",
27037 "docListType",
27038 "docMarkupType",
27039 "docParBlockType",
27040 "docParaType",
27041 "docParamListItem",
27042 "docParamListType",
27043 "docParamName",
27044 "docParamNameList",
27045 "docParamType",
27046 "docPlantumlType",
27047 "docRefTextType",
27048 "docRowType",
27049 "docSect1Type",
27050 "docSect2Type",
27051 "docSect3Type",
27052 "docSect4Type",
27053 "docSimpleSectType",
27054 "docSummaryType",
27055 "docTableType",
27056 "docTitleType",
27057 "docTocItemType",
27058 "docTocListType",
27059 "docURLLink",
27060 "docVarListEntryType",
27061 "docVariableListType",
27062 "docXRefSectType",
27063 "edgelabel",
27064 "enumvalueType",
27065 "graphType",
27066 "highlightType",
27067 "incType",
27068 "label",
27069 "linkType",
27070 "linkedTextType",
27071 "listingType",
27072 "listofallmembersType",
27073 "locationType",
27074 "memberRefType",
27075 "memberdefType",
27076 "name",
27077 "nodeType",
27078 "paramType",
27079 "qualifiedname",
27080 "read",
27081 "refTextType",
27082 "refType",
27083 "referenceType",
27084 "reimplementType",
27085 "scope",
27086 "sectiondefType",
27087 "spType",
27088 "tableofcontentsKindType",
27089 "tableofcontentsType",
27090 "templateparamlistType",
27091 "write"
27092]
static std::vector< std::string > split(const std::string &s, char delim)
Definition: doxysearch.cpp:123
int read(int, char *, size_t)
Read bytes from a file descriptor.
size_t write(int, const char *, size_t)
Writes count bytes from buf to the filedescriptor fd.
float filter[3][3]
Definition: gd.h:1260
int len
Definition: gd.h:1013
static void print(const PlantumlManager::FilesMap &plantumlFiles)
Definition: plantuml.cpp:288
std::string join(const StringVector &sv, const std::string &delimiter)
create a string where the string in the vector are joined by the given delimiter
Definition: util.cpp:7474
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DoxygenType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:1312
def __init__(self, version=None, lang=None, compounddef=None, gds_collector_=None, **kwargs_)
Definition: compound.py:1216
def build(self, node, gds_collector_=None)
Definition: compound.py:1320
def add_compounddef(self, value)
Definition: compound.py:1250
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:1331
def set_version(self, version)
Definition: compound.py:1258
def set_compounddef(self, compounddef)
Definition: compound.py:1248
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:1341
def insert_compounddef_at(self, index, value)
Definition: compound.py:1252
def validate_DoxVersionNumber(self, value)
Definition: compound.py:1264
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:1244
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='DoxygenType', pretty_print=True)
Definition: compound.py:1282
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DoxygenType')
Definition: compound.py:1305
def replace_compounddef_at(self, index, value)
Definition: compound.py:1254
def __init__(self, messages=None)
Definition: compound.py:135
def write_messages(self, outstream)
Definition: compound.py:154
def gds_format_time(self, input_data, input_name='')
Definition: compound.py:465
def gds_validate_date(self, input_data, node=None, input_name='')
Definition: compound.py:416
def gds_format_datetime(self, input_data, input_name='')
Definition: compound.py:352
def gds_format_boolean_list(self, input_data, input_name='')
Definition: compound.py:336
def gds_format_integer_list(self, input_data, input_name='')
Definition: compound.py:219
def gds_parse_datetime(cls, input_data)
Definition: compound.py:389
def gds_format_double_list(self, input_data, input_name='')
Definition: compound.py:305
def gds_format_boolean(self, input_data, input_name='')
Definition: compound.py:319
def gds_format_double(self, input_data, input_name='')
Definition: compound.py:291
def gds_validate_string(self, input_data, node=None, input_name='')
Definition: compound.py:196
def gds_validate_integer(self, input_data, node=None, input_name='')
Definition: compound.py:213
def gds_format_decimal_list(self, input_data, input_name='')
Definition: compound.py:278
def gds_parse_decimal(self, input_data, node=None, input_name='')
Definition: compound.py:266
def gds_parse_time(cls, input_data)
Definition: compound.py:512
def gds_validate_float(self, input_data, node=None, input_name='')
Definition: compound.py:240
def gds_sqa_etl_transform_db_obj(self, dbobj)
Definition: compound.py:651
def get_path_list_(self, node, path_list)
Definition: compound.py:586
def gds_parse_float(self, input_data, node=None, input_name='')
Definition: compound.py:234
def gds_validate_datetime(self, input_data, node=None, input_name='')
Definition: compound.py:350
def gds_format_float_list(self, input_data, input_name='')
Definition: compound.py:246
def gds_parse_string(self, input_data, node=None, input_name='')
Definition: compound.py:194
def gds_format_float(self, input_data, input_name='')
Definition: compound.py:232
def gds_validate_double(self, input_data, node=None, input_name='')
Definition: compound.py:299
def gds_validate_defined_ST_(self, validator, value, input_name, min_occurs=None, max_occurs=None, required=None)
Definition: compound.py:571
def gds_parse_boolean(self, input_data, node=None, input_name='')
Definition: compound.py:321
def gds_parse_date(cls, input_data)
Definition: compound.py:445
def get_class_obj_(self, node, default_class=None)
Definition: compound.py:593
def gds_parse_double(self, input_data, node=None, input_name='')
Definition: compound.py:293
def gds_validate_float_list(self, input_data, node=None, input_name='')
Definition: compound.py:251
def gds_check_cardinality_(self, value, input_name, min_occurs=0, max_occurs=1, required=None)
Definition: compound.py:535
def gds_build_any(self, node, type_name=None)
Definition: compound.py:605
def gds_reverse_node_mapping(cls, mapping)
Definition: compound.py:611
def gds_validate_integer_list(self, input_data, node=None, input_name='')
Definition: compound.py:224
def gds_parse_integer(self, input_data, node=None, input_name='')
Definition: compound.py:207
def gds_validate_time(self, input_data, node=None, input_name='')
Definition: compound.py:463
def gds_format_decimal(self, input_data, input_name='')
Definition: compound.py:259
def gds_format_date(self, input_data, input_name='')
Definition: compound.py:418
def gds_validate_boolean_list(self, input_data, node=None, input_name='')
Definition: compound.py:341
def gds_validate_decimal_list(self, input_data, node=None, input_name='')
Definition: compound.py:283
def gds_str_lower(self, instring)
Definition: compound.py:577
def gds_validate_boolean(self, input_data, node=None, input_name='')
Definition: compound.py:329
def gds_format_base64(self, input_data, input_name='')
Definition: compound.py:201
def gds_validate_double_list(self, input_data, node=None, input_name='')
Definition: compound.py:310
def gds_validate_base64(self, input_data, node=None, input_name='')
Definition: compound.py:203
def gds_validate_decimal(self, input_data, node=None, input_name='')
Definition: compound.py:272
def gds_validate_simple_patterns(self, patterns, target)
Definition: compound.py:495
def gds_format_string(self, input_data, input_name='')
Definition: compound.py:192
def gds_djo_etl_transform_db_obj(self, dbobj)
Definition: compound.py:646
def gds_format_integer(self, input_data, input_name='')
Definition: compound.py:205
def gds_validate_builtin_ST_(self, validator, value, input_name, min_occurs=None, max_occurs=None, required=None)
Definition: compound.py:563
def set_optional(self, optional)
Definition: compound.py:958
def set_container(self, container)
Definition: compound.py:952
def set_data_type(self, data_type)
Definition: compound.py:942
def __init__(self, name='', data_type='', container=0, optional=0, child_attrs=None, choice=None)
Definition: compound.py:933
def set_child_attrs(self, child_attrs)
Definition: compound.py:954
def set_choice(self, choice)
Definition: compound.py:956
def export(self, outfile, level, name, namespace, pretty_print=True)
Definition: compound.py:843
def __init__(self, category, content_type, name, value)
Definition: compound.py:829
def getContenttype(self, content_type)
Definition: compound.py:836
def to_etree_simple(self, mapping_=None, nsmap_=None)
Definition: compound.py:894
def to_etree(self, element, mapping_=None, nsmap_=None)
Definition: compound.py:874
def exportLiteral(self, outfile, level, name)
Definition: compound.py:908
def exportSimple(self, outfile, level, name)
Definition: compound.py:854
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:4668
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:4687
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:4733
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='argsstring', pretty_print=True)
Definition: compound.py:4696
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='argsstring')
Definition: compound.py:4718
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='argsstring', fromsubclass_=False, pretty_print=True)
Definition: compound.py:4720
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:4735
def build(self, node, gds_collector_=None)
Definition: compound.py:4722
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='array', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6067
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6080
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:6015
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6034
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='array', pretty_print=True)
Definition: compound.py:6043
def build(self, node, gds_collector_=None)
Definition: compound.py:6069
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='array')
Definition: compound.py:6065
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6082
def build(self, node, gds_collector_=None)
Definition: compound.py:5841
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='attributes')
Definition: compound.py:5837
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='attributes', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5839
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5854
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:5787
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='attributes', pretty_print=True)
Definition: compound.py:5815
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:5806
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5852
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5037
def build(self, node, gds_collector_=None)
Definition: compound.py:5026
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5039
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:4972
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='bitfield', pretty_print=True)
Definition: compound.py:5000
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:4991
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='bitfield')
Definition: compound.py:5022
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='bitfield', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5024
def build(self, node, gds_collector_=None)
Definition: compound.py:6654
def validate_DoxGraphRelation(self, value)
Definition: compound.py:6595
def set_relation(self, relation)
Definition: compound.py:6593
def insert_edgelabel_at(self, index, value)
Definition: compound.py:6583
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='childnodeType')
Definition: compound.py:6638
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6575
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6665
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6675
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='childnodeType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6645
def set_edgelabel(self, edgelabel)
Definition: compound.py:6579
def replace_edgelabel_at(self, index, value)
Definition: compound.py:6585
def __init__(self, refid=None, relation=None, edgelabel=None, gds_collector_=None, **kwargs_)
Definition: compound.py:6547
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='childnodeType', pretty_print=True)
Definition: compound.py:6615
def set_refkind(self, refkind)
Definition: compound.py:7032
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='codelineType')
Definition: compound.py:7094
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:7010
def add_highlight(self, value)
Definition: compound.py:7016
def validate_DoxBool(self, value)
Definition: compound.py:7051
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:7145
def validate_DoxRefKind(self, value)
Definition: compound.py:7038
def __init__(self, lineno=None, refid=None, refkind=None, external=None, highlight=None, gds_collector_=None, **kwargs_)
Definition: compound.py:6978
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:7126
def insert_highlight_at(self, index, value)
Definition: compound.py:7018
def set_highlight(self, highlight)
Definition: compound.py:7014
def replace_highlight_at(self, index, value)
Definition: compound.py:7020
def set_lineno(self, lineno)
Definition: compound.py:7024
def build(self, node, gds_collector_=None)
Definition: compound.py:7115
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='codelineType', pretty_print=True)
Definition: compound.py:7071
def set_external(self, external)
Definition: compound.py:7036
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='codelineType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:7107
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2783
def __init__(self, refid=None, prot=None, virt=None, valueOf_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:2646
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compoundRefType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2754
def validate_DoxProtectionKind(self, value)
Definition: compound.py:2688
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compoundRefType', pretty_print=True)
Definition: compound.py:2721
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2768
def set_valueOf_(self, valueOf_)
Definition: compound.py:2687
def validate_DoxVirtualKind(self, value)
Definition: compound.py:2701
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2672
def build(self, node, gds_collector_=None)
Definition: compound.py:2756
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='compoundRefType')
Definition: compound.py:2744
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compounddefType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:1826
def set_incdepgraph(self, incdepgraph)
Definition: compound.py:1531
def validate_DoxProtectionKind(self, value)
Definition: compound.py:1719
def replace_innerfile_at(self, index, value)
Definition: compound.py:1555
def set_innerdir(self, innerdir)
Definition: compound.py:1539
def insert_innerdir_at(self, index, value)
Definition: compound.py:1543
def replace_innerclass_at(self, index, value)
Definition: compound.py:1565
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:1965
def set_location(self, location)
Definition: compound.py:1655
def set_inheritancegraph(self, inheritancegraph)
Definition: compound.py:1643
def replace_includes_at(self, index, value)
Definition: compound.py:1517
def set_briefdescription(self, briefdescription)
Definition: compound.py:1635
def set_innerclass(self, innerclass)
Definition: compound.py:1559
def insert_includedby_at(self, index, value)
Definition: compound.py:1525
def insert_innerfile_at(self, index, value)
Definition: compound.py:1553
def set_innernamespace(self, innernamespace)
Definition: compound.py:1579
def replace_innergroup_at(self, index, value)
Definition: compound.py:1605
def set_includes(self, includes)
Definition: compound.py:1511
def set_compoundname(self, compoundname)
Definition: compound.py:1483
def replace_sectiondef_at(self, index, value)
Definition: compound.py:1619
def set_abstract(self, abstract)
Definition: compound.py:1691
def insert_innerconcept_at(self, index, value)
Definition: compound.py:1573
def insert_basecompoundref_at(self, index, value)
Definition: compound.py:1495
def set_basecompoundref(self, basecompoundref)
Definition: compound.py:1491
def validate_DoxLanguage(self, value)
Definition: compound.py:1706
def set_innerpage(self, innerpage)
Definition: compound.py:1589
def insert_innergroup_at(self, index, value)
Definition: compound.py:1603
def set_detaileddescription(self, detaileddescription)
Definition: compound.py:1639
def insert_innernamespace_at(self, index, value)
Definition: compound.py:1583
def __init__(self, id=None, kind=None, language=None, prot=None, final=None, inline=None, sealed=None, abstract=None, compoundname=None, title=None, basecompoundref=None, derivedcompoundref=None, includes=None, includedby=None, incdepgraph=None, invincdepgraph=None, innerdir=None, innerfile=None, innerclass=None, innerconcept=None, innernamespace=None, innerpage=None, innergroup=None, templateparamlist=None, sectiondef=None, tableofcontents=None, requiresclause=None, initializer=None, briefdescription=None, detaileddescription=None, inheritancegraph=None, collaborationgraph=None, programlisting=None, location=None, listofallmembers=None, gds_collector_=None, **kwargs_)
Definition: compound.py:1354
def set_innergroup(self, innergroup)
Definition: compound.py:1599
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:1479
def replace_innerdir_at(self, index, value)
Definition: compound.py:1545
def replace_includedby_at(self, index, value)
Definition: compound.py:1527
def set_innerconcept(self, innerconcept)
Definition: compound.py:1569
def set_sectiondef(self, sectiondef)
Definition: compound.py:1613
def validate_DoxCompoundKind(self, value)
Definition: compound.py:1693
def insert_includes_at(self, index, value)
Definition: compound.py:1515
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='compounddefType', pretty_print=True)
Definition: compound.py:1778
def set_collaborationgraph(self, collaborationgraph)
Definition: compound.py:1647
def replace_innerpage_at(self, index, value)
Definition: compound.py:1595
def insert_derivedcompoundref_at(self, index, value)
Definition: compound.py:1505
def insert_innerclass_at(self, index, value)
Definition: compound.py:1563
def set_requiresclause(self, requiresclause)
Definition: compound.py:1627
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='compounddefType')
Definition: compound.py:1801
def replace_basecompoundref_at(self, index, value)
Definition: compound.py:1497
def set_includedby(self, includedby)
Definition: compound.py:1521
def add_basecompoundref(self, value)
Definition: compound.py:1493
def replace_derivedcompoundref_at(self, index, value)
Definition: compound.py:1507
def replace_innernamespace_at(self, index, value)
Definition: compound.py:1585
def insert_innerpage_at(self, index, value)
Definition: compound.py:1593
def set_templateparamlist(self, templateparamlist)
Definition: compound.py:1609
def add_derivedcompoundref(self, value)
Definition: compound.py:1503
def set_invincdepgraph(self, invincdepgraph)
Definition: compound.py:1535
def set_tableofcontents(self, tableofcontents)
Definition: compound.py:1623
def set_listofallmembers(self, listofallmembers)
Definition: compound.py:1659
def set_innerfile(self, innerfile)
Definition: compound.py:1549
def set_language(self, language)
Definition: compound.py:1671
def set_derivedcompoundref(self, derivedcompoundref)
Definition: compound.py:1501
def set_programlisting(self, programlisting)
Definition: compound.py:1651
def set_initializer(self, initializer)
Definition: compound.py:1631
def build(self, node, gds_collector_=None)
Definition: compound.py:1914
def insert_sectiondef_at(self, index, value)
Definition: compound.py:1617
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:1925
def replace_innerconcept_at(self, index, value)
Definition: compound.py:1575
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='declname', pretty_print=True)
Definition: compound.py:5891
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='declname', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5915
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5928
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:5863
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5930
def build(self, node, gds_collector_=None)
Definition: compound.py:5917
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:5882
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='declname')
Definition: compound.py:5913
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:4657
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:4659
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='definition', pretty_print=True)
Definition: compound.py:4620
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:4592
def build(self, node, gds_collector_=None)
Definition: compound.py:4646
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:4611
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='definition', fromsubclass_=False, pretty_print=True)
Definition: compound.py:4644
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='definition')
Definition: compound.py:4642
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='defname', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5991
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:5958
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6006
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='defname', pretty_print=True)
Definition: compound.py:5967
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6004
def build(self, node, gds_collector_=None)
Definition: compound.py:5993
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:5939
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='defname')
Definition: compound.py:5989
def replace_para_at(self, index, value)
Definition: compound.py:5108
def set_internal(self, internal)
Definition: compound.py:5112
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5206
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:5094
def replace_internal_at(self, index, value)
Definition: compound.py:5118
def insert_para_at(self, index, value)
Definition: compound.py:5106
def build(self, node, gds_collector_=None)
Definition: compound.py:5190
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='descriptionType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5169
def __init__(self, title=None, para=None, internal=None, sect1=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:5048
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5208
def replace_sect1_at(self, index, value)
Definition: compound.py:5128
def insert_sect1_at(self, index, value)
Definition: compound.py:5126
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='descriptionType', pretty_print=True)
Definition: compound.py:5144
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='descriptionType')
Definition: compound.py:5167
def insert_internal_at(self, index, value)
Definition: compound.py:5116
def set_valueOf_(self, valueOf_)
Definition: compound.py:5131
def build(self, node, gds_collector_=None)
Definition: compound.py:15653
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:15674
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:15669
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docAnchorType')
Definition: compound.py:15647
def __init__(self, id=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:15580
def set_valueOf_(self, valueOf_)
Definition: compound.py:15618
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docAnchorType', pretty_print=True)
Definition: compound.py:15627
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docAnchorType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:15651
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:15611
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docBlockQuoteType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26259
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:26215
def __init__(self, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:26191
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26280
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26278
def insert_para_at(self, index, value)
Definition: compound.py:26223
def build(self, node, gds_collector_=None)
Definition: compound.py:26267
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docBlockQuoteType', pretty_print=True)
Definition: compound.py:26234
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docBlockQuoteType')
Definition: compound.py:26257
def replace_para_at(self, index, value)
Definition: compound.py:26225
def insert_small_at(self, index, value)
Definition: compound.py:18322
def replace_latexonly_at(self, index, value)
Definition: compound.py:18404
def insert_xmlonly_at(self, index, value)
Definition: compound.py:18382
def replace_emoji_at(self, index, value)
Definition: compound.py:18494
def replace_del_at(self, index, value)
Definition: compound.py:18344
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:18214
def insert_dot_at(self, index, value)
Definition: compound.py:18432
def set_docbookonly(self, docbookonly)
Definition: compound.py:18408
def insert_del_at(self, index, value)
Definition: compound.py:18342
def insert_subscript_at(self, index, value)
Definition: compound.py:18292
def replace_xmlonly_at(self, index, value)
Definition: compound.py:18384
def replace_docbookonly_at(self, index, value)
Definition: compound.py:18414
def set_subscript(self, subscript)
Definition: compound.py:18288
def replace_plantuml_at(self, index, value)
Definition: compound.py:18454
def replace_dot_at(self, index, value)
Definition: compound.py:18434
def replace_linebreak_at(self, index, value)
Definition: compound.py:18504
def insert_emoji_at(self, index, value)
Definition: compound.py:18492
def set_superscript(self, superscript)
Definition: compound.py:18298
def set_htmlonly(self, htmlonly)
Definition: compound.py:18358
def replace_emphasis_at(self, index, value)
Definition: compound.py:18274
def insert_s_at(self, index, value)
Definition: compound.py:18242
def replace_computeroutput_at(self, index, value)
Definition: compound.py:18284
def insert_rtfonly_at(self, index, value)
Definition: compound.py:18392
def replace_underline_at(self, index, value)
Definition: compound.py:18264
def insert_anchor_at(self, index, value)
Definition: compound.py:18462
def insert_docbookonly_at(self, index, value)
Definition: compound.py:18412
def replace_manonly_at(self, index, value)
Definition: compound.py:18374
def replace_msc_at(self, index, value)
Definition: compound.py:18444
def insert_ins_at(self, index, value)
Definition: compound.py:18352
def insert_computeroutput_at(self, index, value)
Definition: compound.py:18282
def insert_underline_at(self, index, value)
Definition: compound.py:18262
def insert_center_at(self, index, value)
Definition: compound.py:18312
def replace_ins_at(self, index, value)
Definition: compound.py:18354
def insert_bold_at(self, index, value)
Definition: compound.py:18232
def replace_bold_at(self, index, value)
Definition: compound.py:18234
def insert_superscript_at(self, index, value)
Definition: compound.py:18302
def insert_ref_at(self, index, value)
Definition: compound.py:18482
def insert_latexonly_at(self, index, value)
Definition: compound.py:18402
def replace_superscript_at(self, index, value)
Definition: compound.py:18304
def set_latexonly(self, latexonly)
Definition: compound.py:18398
def replace_anchor_at(self, index, value)
Definition: compound.py:18464
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCaptionType', pretty_print=True)
Definition: compound.py:18549
def replace_small_at(self, index, value)
Definition: compound.py:18324
def __init__(self, id=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:18038
def set_plantuml(self, plantuml)
Definition: compound.py:18448
def insert_manonly_at(self, index, value)
Definition: compound.py:18372
def replace_ref_at(self, index, value)
Definition: compound.py:18484
def set_linebreak(self, linebreak)
Definition: compound.py:18498
def build(self, node, gds_collector_=None)
Definition: compound.py:18676
def set_emphasis(self, emphasis)
Definition: compound.py:18268
def replace_strike_at(self, index, value)
Definition: compound.py:18254
def insert_linebreak_at(self, index, value)
Definition: compound.py:18502
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCaptionType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:18576
def replace_cite_at(self, index, value)
Definition: compound.py:18334
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:18697
def set_computeroutput(self, computeroutput)
Definition: compound.py:18278
def insert_formula_at(self, index, value)
Definition: compound.py:18472
def replace_ulink_at(self, index, value)
Definition: compound.py:18224
def replace_image_at(self, index, value)
Definition: compound.py:18424
def set_underline(self, underline)
Definition: compound.py:18258
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:18692
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docCaptionType')
Definition: compound.py:18572
def replace_center_at(self, index, value)
Definition: compound.py:18314
def replace_subscript_at(self, index, value)
Definition: compound.py:18294
def replace_formula_at(self, index, value)
Definition: compound.py:18474
def insert_htmlonly_at(self, index, value)
Definition: compound.py:18362
def insert_msc_at(self, index, value)
Definition: compound.py:18442
def insert_image_at(self, index, value)
Definition: compound.py:18422
def set_valueOf_(self, valueOf_)
Definition: compound.py:18511
def insert_ulink_at(self, index, value)
Definition: compound.py:18222
def replace_htmlonly_at(self, index, value)
Definition: compound.py:18364
def replace_rtfonly_at(self, index, value)
Definition: compound.py:18394
def insert_cite_at(self, index, value)
Definition: compound.py:18332
def replace_s_at(self, index, value)
Definition: compound.py:18244
def insert_strike_at(self, index, value)
Definition: compound.py:18252
def insert_plantuml_at(self, index, value)
Definition: compound.py:18452
def insert_emphasis_at(self, index, value)
Definition: compound.py:18272
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25955
def build(self, node, gds_collector_=None)
Definition: compound.py:26035
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCopyType', pretty_print=True)
Definition: compound.py:25994
def insert_para_at(self, index, value)
Definition: compound.py:25963
def replace_sect1_at(self, index, value)
Definition: compound.py:25975
def set_internal(self, internal)
Definition: compound.py:25979
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26046
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docCopyType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26021
def __init__(self, link=None, para=None, sect1=None, internal=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25922
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docCopyType')
Definition: compound.py:26017
def replace_para_at(self, index, value)
Definition: compound.py:25965
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26051
def insert_sect1_at(self, index, value)
Definition: compound.py:25973
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDetailsType', pretty_print=True)
Definition: compound.py:26124
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:26100
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDetailsType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26149
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docDetailsType')
Definition: compound.py:26147
def replace_para_at(self, index, value)
Definition: compound.py:26114
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26171
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26173
def build(self, node, gds_collector_=None)
Definition: compound.py:26160
def __init__(self, summary=None, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:26074
def insert_para_at(self, index, value)
Definition: compound.py:26112
def set_manonly(self, manonly)
Definition: compound.py:21333
def set_valueOf_(self, valueOf_)
Definition: compound.py:21488
def insert_computeroutput_at(self, index, value)
Definition: compound.py:21247
def insert_strike_at(self, index, value)
Definition: compound.py:21217
def set_subscript(self, subscript)
Definition: compound.py:21253
def insert_cite_at(self, index, value)
Definition: compound.py:21297
def insert_msc_at(self, index, value)
Definition: compound.py:21407
def build(self, node, gds_collector_=None)
Definition: compound.py:21662
def replace_dot_at(self, index, value)
Definition: compound.py:21399
def insert_ins_at(self, index, value)
Definition: compound.py:21317
def replace_center_at(self, index, value)
Definition: compound.py:21279
def replace_anchor_at(self, index, value)
Definition: compound.py:21429
def insert_dot_at(self, index, value)
Definition: compound.py:21397
def insert_emphasis_at(self, index, value)
Definition: compound.py:21237
def replace_manonly_at(self, index, value)
Definition: compound.py:21339
def add_computeroutput(self, value)
Definition: compound.py:21245
def replace_computeroutput_at(self, index, value)
Definition: compound.py:21249
def set_plantuml(self, plantuml)
Definition: compound.py:21413
def replace_emphasis_at(self, index, value)
Definition: compound.py:21239
def set_htmlonly(self, htmlonly)
Definition: compound.py:21323
def insert_htmlonly_at(self, index, value)
Definition: compound.py:21327
def insert_ref_at(self, index, value)
Definition: compound.py:21447
def replace_cite_at(self, index, value)
Definition: compound.py:21299
def set_computeroutput(self, computeroutput)
Definition: compound.py:21243
def replace_underline_at(self, index, value)
Definition: compound.py:21229
def replace_latexonly_at(self, index, value)
Definition: compound.py:21369
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:21695
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docDotMscType')
Definition: compound.py:21549
def set_emphasis(self, emphasis)
Definition: compound.py:21233
def insert_emoji_at(self, index, value)
Definition: compound.py:21457
def insert_latexonly_at(self, index, value)
Definition: compound.py:21367
def insert_formula_at(self, index, value)
Definition: compound.py:21437
def insert_docbookonly_at(self, index, value)
Definition: compound.py:21377
def set_caption(self, caption)
Definition: compound.py:21485
def set_underline(self, underline)
Definition: compound.py:21223
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:21179
def replace_ins_at(self, index, value)
Definition: compound.py:21319
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDotMscType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:21562
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:21678
def insert_subscript_at(self, index, value)
Definition: compound.py:21257
def replace_emoji_at(self, index, value)
Definition: compound.py:21459
def insert_superscript_at(self, index, value)
Definition: compound.py:21267
def insert_linebreak_at(self, index, value)
Definition: compound.py:21467
def set_linebreak(self, linebreak)
Definition: compound.py:21463
def insert_image_at(self, index, value)
Definition: compound.py:21387
def set_docbookonly(self, docbookonly)
Definition: compound.py:21373
def set_superscript(self, superscript)
Definition: compound.py:21263
def replace_xmlonly_at(self, index, value)
Definition: compound.py:21349
def insert_xmlonly_at(self, index, value)
Definition: compound.py:21347
def replace_strike_at(self, index, value)
Definition: compound.py:21219
def insert_manonly_at(self, index, value)
Definition: compound.py:21337
def replace_image_at(self, index, value)
Definition: compound.py:21389
def replace_ulink_at(self, index, value)
Definition: compound.py:21189
def insert_rtfonly_at(self, index, value)
Definition: compound.py:21357
def replace_superscript_at(self, index, value)
Definition: compound.py:21269
def replace_plantuml_at(self, index, value)
Definition: compound.py:21419
def insert_ulink_at(self, index, value)
Definition: compound.py:21187
def replace_del_at(self, index, value)
Definition: compound.py:21309
def replace_htmlonly_at(self, index, value)
Definition: compound.py:21329
def set_rtfonly(self, rtfonly)
Definition: compound.py:21353
def set_xmlonly(self, xmlonly)
Definition: compound.py:21343
def replace_docbookonly_at(self, index, value)
Definition: compound.py:21379
def insert_small_at(self, index, value)
Definition: compound.py:21287
def insert_center_at(self, index, value)
Definition: compound.py:21277
def insert_del_at(self, index, value)
Definition: compound.py:21307
def set_latexonly(self, latexonly)
Definition: compound.py:21363
def replace_bold_at(self, index, value)
Definition: compound.py:21199
def replace_formula_at(self, index, value)
Definition: compound.py:21439
def replace_s_at(self, index, value)
Definition: compound.py:21209
def insert_anchor_at(self, index, value)
Definition: compound.py:21427
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docDotMscType', pretty_print=True)
Definition: compound.py:21526
def insert_plantuml_at(self, index, value)
Definition: compound.py:21417
def insert_s_at(self, index, value)
Definition: compound.py:21207
def replace_rtfonly_at(self, index, value)
Definition: compound.py:21359
def insert_bold_at(self, index, value)
Definition: compound.py:21197
def replace_small_at(self, index, value)
Definition: compound.py:21289
def __init__(self, name=None, width=None, height=None, caption=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:20997
def replace_linebreak_at(self, index, value)
Definition: compound.py:21469
def set_formula(self, formula)
Definition: compound.py:21433
def replace_ref_at(self, index, value)
Definition: compound.py:21449
def replace_msc_at(self, index, value)
Definition: compound.py:21409
def replace_subscript_at(self, index, value)
Definition: compound.py:21259
def insert_underline_at(self, index, value)
Definition: compound.py:21227
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26800
def set_unicode(self, unicode)
Definition: compound.py:26740
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:26732
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmojiType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26778
def build(self, node, gds_collector_=None)
Definition: compound.py:26780
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docEmojiType')
Definition: compound.py:26771
def __init__(self, name=None, unicode=None, gds_collector_=None, **kwargs_)
Definition: compound.py:26709
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmojiType', pretty_print=True)
Definition: compound.py:26749
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26791
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:26414
def build(self, node, gds_collector_=None)
Definition: compound.py:26449
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmptyType', pretty_print=True)
Definition: compound.py:26423
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26462
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26460
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docEmptyType')
Definition: compound.py:26445
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:26395
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEmptyType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26447
Definition: compound.py:17763
width_nsprefix_
Definition: compound.py:17784
para_nsprefix_
Definition: compound.py:17791
colspan_nsprefix_
Definition: compound.py:17776
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:17989
rowspan_nsprefix_
Definition: compound.py:17778
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEntryType', pretty_print=True)
Definition: compound.py:17894
colspan
Definition: compound.py:17775
def get_align(self)
Definition: compound.py:17830
def set_valign(self, valign)
Definition: compound.py:17836
align_nsprefix_
Definition: compound.py:17780
ns_prefix_
Definition: compound.py:17772
valign
Definition: compound.py:17781
def set_align(self, align)
Definition: compound.py:17832
def __init__(self, thead=None, colspan=None, rowspan=None, align=None, valign=None, width=None, class_=None, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:17767
def get_thead(self)
Definition: compound.py:17818
rowspan
Definition: compound.py:17777
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docEntryType')
Definition: compound.py:17917
def set_para(self, para)
Definition: compound.py:17810
def validate_DoxAlign(self, value)
Definition: compound.py:17861
def get_class(self)
Definition: compound.py:17842
def get_rowspan(self)
Definition: compound.py:17826
def validate_DoxBool(self, value)
Definition: compound.py:17848
def build(self, node, gds_collector_=None)
Definition: compound.py:17978
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docEntryType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:17970
thead
Definition: compound.py:17773
def validate_DoxVerticalAlign(self, value)
Definition: compound.py:17874
def get_valign(self)
Definition: compound.py:17834
anyAttributes_
Definition: compound.py:17792
def set_class(self, class_)
Definition: compound.py:17844
width
Definition: compound.py:17783
def set_width(self, width)
Definition: compound.py:17840
def set_colspan(self, colspan)
Definition: compound.py:17824
def insert_para_at(self, index, value)
Definition: compound.py:17814
def set_anyAttributes_(self, anyAttributes_)
Definition: compound.py:17847
gds_elementtree_node_
Definition: compound.py:17769
thead_nsprefix_
Definition: compound.py:17774
valign_nsprefix_
Definition: compound.py:17782
def get_para(self)
Definition: compound.py:17808
def add_para(self, value)
Definition: compound.py:17812
def get_ns_prefix_(self)
Definition: compound.py:17804
subclass
Definition: compound.py:17765
factory
Definition: compound.py:17803
class_
Definition: compound.py:17785
def replace_para_at(self, index, value)
Definition: compound.py:17816
original_tagname_
Definition: compound.py:17770
gds_collector_
Definition: compound.py:17768
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:18025
def set_rowspan(self, rowspan)
Definition: compound.py:17828
def get_width(self)
Definition: compound.py:17838
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:17806
def set_thead(self, thead)
Definition: compound.py:17820
def get_colspan(self)
Definition: compound.py:17822
para
Definition: compound.py:17788
align
Definition: compound.py:17779
def hasContent_(self)
Definition: compound.py:17887
def get_anyAttributes_(self)
Definition: compound.py:17846
class__nsprefix_
Definition: compound.py:17786
parent_object_
Definition: compound.py:17771
def set_valueOf_(self, valueOf_)
Definition: compound.py:15725
def __init__(self, id=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:15687
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:15718
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:15781
def build(self, node, gds_collector_=None)
Definition: compound.py:15760
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docFormulaType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:15758
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docFormulaType', pretty_print=True)
Definition: compound.py:15734
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:15776
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docFormulaType')
Definition: compound.py:15754
def replace_plantuml_at(self, index, value)
Definition: compound.py:19405
def insert_docbookonly_at(self, index, value)
Definition: compound.py:19363
def replace_dot_at(self, index, value)
Definition: compound.py:19385
def insert_dot_at(self, index, value)
Definition: compound.py:19383
def __init__(self, level=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:18989
def insert_bold_at(self, index, value)
Definition: compound.py:19183
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHeadingType', pretty_print=True)
Definition: compound.py:19500
def insert_anchor_at(self, index, value)
Definition: compound.py:19413
def insert_image_at(self, index, value)
Definition: compound.py:19373
def insert_small_at(self, index, value)
Definition: compound.py:19273
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docHeadingType')
Definition: compound.py:19523
def replace_superscript_at(self, index, value)
Definition: compound.py:19255
def insert_xmlonly_at(self, index, value)
Definition: compound.py:19333
def replace_s_at(self, index, value)
Definition: compound.py:19195
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:19643
def replace_cite_at(self, index, value)
Definition: compound.py:19285
def insert_s_at(self, index, value)
Definition: compound.py:19193
def replace_computeroutput_at(self, index, value)
Definition: compound.py:19235
def replace_subscript_at(self, index, value)
Definition: compound.py:19245
def insert_center_at(self, index, value)
Definition: compound.py:19263
def insert_subscript_at(self, index, value)
Definition: compound.py:19243
def insert_ref_at(self, index, value)
Definition: compound.py:19433
def replace_linebreak_at(self, index, value)
Definition: compound.py:19455
def insert_ulink_at(self, index, value)
Definition: compound.py:19173
def replace_underline_at(self, index, value)
Definition: compound.py:19215
def set_superscript(self, superscript)
Definition: compound.py:19249
def replace_ref_at(self, index, value)
Definition: compound.py:19435
def replace_msc_at(self, index, value)
Definition: compound.py:19395
def insert_formula_at(self, index, value)
Definition: compound.py:19423
def set_linebreak(self, linebreak)
Definition: compound.py:19449
def replace_latexonly_at(self, index, value)
Definition: compound.py:19355
def insert_rtfonly_at(self, index, value)
Definition: compound.py:19343
def replace_bold_at(self, index, value)
Definition: compound.py:19185
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:19165
def replace_image_at(self, index, value)
Definition: compound.py:19375
def insert_underline_at(self, index, value)
Definition: compound.py:19213
def insert_msc_at(self, index, value)
Definition: compound.py:19393
def replace_rtfonly_at(self, index, value)
Definition: compound.py:19345
def build(self, node, gds_collector_=None)
Definition: compound.py:19627
def insert_del_at(self, index, value)
Definition: compound.py:19293
def replace_formula_at(self, index, value)
Definition: compound.py:19425
def insert_emphasis_at(self, index, value)
Definition: compound.py:19223
def insert_linebreak_at(self, index, value)
Definition: compound.py:19453
def replace_small_at(self, index, value)
Definition: compound.py:19275
def insert_emoji_at(self, index, value)
Definition: compound.py:19443
def set_plantuml(self, plantuml)
Definition: compound.py:19399
def insert_strike_at(self, index, value)
Definition: compound.py:19203
def replace_anchor_at(self, index, value)
Definition: compound.py:19415
def insert_computeroutput_at(self, index, value)
Definition: compound.py:19233
def set_underline(self, underline)
Definition: compound.py:19209
def insert_ins_at(self, index, value)
Definition: compound.py:19303
def set_emphasis(self, emphasis)
Definition: compound.py:19219
def replace_htmlonly_at(self, index, value)
Definition: compound.py:19315
def insert_cite_at(self, index, value)
Definition: compound.py:19283
def replace_xmlonly_at(self, index, value)
Definition: compound.py:19335
def set_latexonly(self, latexonly)
Definition: compound.py:19349
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHeadingType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:19527
def insert_manonly_at(self, index, value)
Definition: compound.py:19323
def replace_emoji_at(self, index, value)
Definition: compound.py:19445
def replace_strike_at(self, index, value)
Definition: compound.py:19205
def replace_emphasis_at(self, index, value)
Definition: compound.py:19225
def replace_ulink_at(self, index, value)
Definition: compound.py:19175
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:19648
def insert_htmlonly_at(self, index, value)
Definition: compound.py:19313
def set_valueOf_(self, valueOf_)
Definition: compound.py:19462
def replace_manonly_at(self, index, value)
Definition: compound.py:19325
def set_subscript(self, subscript)
Definition: compound.py:19239
def replace_del_at(self, index, value)
Definition: compound.py:19295
def set_docbookonly(self, docbookonly)
Definition: compound.py:19359
def replace_docbookonly_at(self, index, value)
Definition: compound.py:19365
def set_htmlonly(self, htmlonly)
Definition: compound.py:19309
def insert_latexonly_at(self, index, value)
Definition: compound.py:19353
def insert_plantuml_at(self, index, value)
Definition: compound.py:19403
def replace_center_at(self, index, value)
Definition: compound.py:19265
def replace_ins_at(self, index, value)
Definition: compound.py:19305
def set_computeroutput(self, computeroutput)
Definition: compound.py:19229
def insert_superscript_at(self, index, value)
Definition: compound.py:19253
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2637
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2576
def build(self, node, gds_collector_=None)
Definition: compound.py:2620
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHtmlOnlyType', pretty_print=True)
Definition: compound.py:2591
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docHtmlOnlyType')
Definition: compound.py:2614
def __init__(self, block=None, valueOf_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:2554
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docHtmlOnlyType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2618
def set_valueOf_(self, valueOf_)
Definition: compound.py:2583
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2632
def insert_docbookonly_at(self, index, value)
Definition: compound.py:22367
def replace_latexonly_at(self, index, value)
Definition: compound.py:22359
def insert_emoji_at(self, index, value)
Definition: compound.py:22447
def insert_ref_at(self, index, value)
Definition: compound.py:22437
def insert_manonly_at(self, index, value)
Definition: compound.py:22327
def insert_underline_at(self, index, value)
Definition: compound.py:22217
def set_linebreak(self, linebreak)
Definition: compound.py:22453
def replace_msc_at(self, index, value)
Definition: compound.py:22399
def insert_cite_at(self, index, value)
Definition: compound.py:22287
def insert_ulink_at(self, index, value)
Definition: compound.py:22177
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:22674
def replace_anchor_at(self, index, value)
Definition: compound.py:22419
def insert_computeroutput_at(self, index, value)
Definition: compound.py:22237
def replace_del_at(self, index, value)
Definition: compound.py:22299
def replace_strike_at(self, index, value)
Definition: compound.py:22209
def insert_rtfonly_at(self, index, value)
Definition: compound.py:22347
def replace_ref_at(self, index, value)
Definition: compound.py:22439
def insert_strike_at(self, index, value)
Definition: compound.py:22207
def replace_emoji_at(self, index, value)
Definition: compound.py:22449
def insert_anchor_at(self, index, value)
Definition: compound.py:22417
def insert_formula_at(self, index, value)
Definition: compound.py:22427
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:22661
def insert_latexonly_at(self, index, value)
Definition: compound.py:22357
def replace_cite_at(self, index, value)
Definition: compound.py:22289
def insert_linebreak_at(self, index, value)
Definition: compound.py:22457
def insert_plantuml_at(self, index, value)
Definition: compound.py:22407
def insert_htmlonly_at(self, index, value)
Definition: compound.py:22317
def replace_computeroutput_at(self, index, value)
Definition: compound.py:22239
def insert_msc_at(self, index, value)
Definition: compound.py:22397
def set_subscript(self, subscript)
Definition: compound.py:22243
def insert_xmlonly_at(self, index, value)
Definition: compound.py:22337
def replace_s_at(self, index, value)
Definition: compound.py:22199
def replace_small_at(self, index, value)
Definition: compound.py:22279
def insert_subscript_at(self, index, value)
Definition: compound.py:22247
def insert_superscript_at(self, index, value)
Definition: compound.py:22257
def insert_bold_at(self, index, value)
Definition: compound.py:22187
def insert_image_at(self, index, value)
Definition: compound.py:22377
def replace_bold_at(self, index, value)
Definition: compound.py:22189
def insert_ins_at(self, index, value)
Definition: compound.py:22307
def replace_plantuml_at(self, index, value)
Definition: compound.py:22409
def build(self, node, gds_collector_=None)
Definition: compound.py:22645
def insert_small_at(self, index, value)
Definition: compound.py:22277
def set_superscript(self, superscript)
Definition: compound.py:22253
def insert_s_at(self, index, value)
Definition: compound.py:22197
def replace_subscript_at(self, index, value)
Definition: compound.py:22249
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:22169
def set_underline(self, underline)
Definition: compound.py:22213
def replace_center_at(self, index, value)
Definition: compound.py:22269
def replace_dot_at(self, index, value)
Definition: compound.py:22389
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageFileType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:22545
def replace_ulink_at(self, index, value)
Definition: compound.py:22179
def insert_center_at(self, index, value)
Definition: compound.py:22267
def __init__(self, name=None, width=None, height=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:21989
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docImageFileType')
Definition: compound.py:22535
def replace_image_at(self, index, value)
Definition: compound.py:22379
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageFileType', pretty_print=True)
Definition: compound.py:22512
def replace_ins_at(self, index, value)
Definition: compound.py:22309
def replace_xmlonly_at(self, index, value)
Definition: compound.py:22339
def replace_formula_at(self, index, value)
Definition: compound.py:22429
def set_computeroutput(self, computeroutput)
Definition: compound.py:22233
def set_docbookonly(self, docbookonly)
Definition: compound.py:22363
def set_latexonly(self, latexonly)
Definition: compound.py:22353
def insert_emphasis_at(self, index, value)
Definition: compound.py:22227
def replace_underline_at(self, index, value)
Definition: compound.py:22219
def replace_manonly_at(self, index, value)
Definition: compound.py:22329
def replace_emphasis_at(self, index, value)
Definition: compound.py:22229
def replace_linebreak_at(self, index, value)
Definition: compound.py:22459
def replace_htmlonly_at(self, index, value)
Definition: compound.py:22319
def replace_rtfonly_at(self, index, value)
Definition: compound.py:22349
def replace_superscript_at(self, index, value)
Definition: compound.py:22259
def replace_docbookonly_at(self, index, value)
Definition: compound.py:22369
def insert_del_at(self, index, value)
Definition: compound.py:22297
def insert_dot_at(self, index, value)
Definition: compound.py:22387
def replace_formula_at(self, index, value)
Definition: compound.py:20388
def set_computeroutput(self, computeroutput)
Definition: compound.py:20192
def insert_underline_at(self, index, value)
Definition: compound.py:20176
def replace_linebreak_at(self, index, value)
Definition: compound.py:20418
def replace_del_at(self, index, value)
Definition: compound.py:20258
def replace_ref_at(self, index, value)
Definition: compound.py:20398
def insert_formula_at(self, index, value)
Definition: compound.py:20386
def insert_dot_at(self, index, value)
Definition: compound.py:20346
def replace_image_at(self, index, value)
Definition: compound.py:20338
def set_subscript(self, subscript)
Definition: compound.py:20202
def replace_manonly_at(self, index, value)
Definition: compound.py:20288
def insert_docbookonly_at(self, index, value)
Definition: compound.py:20326
def replace_center_at(self, index, value)
Definition: compound.py:20228
def insert_xmlonly_at(self, index, value)
Definition: compound.py:20296
def insert_ulink_at(self, index, value)
Definition: compound.py:20136
def replace_htmlonly_at(self, index, value)
Definition: compound.py:20278
def set_emphasis(self, emphasis)
Definition: compound.py:20182
def replace_subscript_at(self, index, value)
Definition: compound.py:20208
def add_docbookonly(self, value)
Definition: compound.py:20324
def replace_cite_at(self, index, value)
Definition: compound.py:20248
def set_docbookonly(self, docbookonly)
Definition: compound.py:20322
def insert_small_at(self, index, value)
Definition: compound.py:20236
def replace_plantuml_at(self, index, value)
Definition: compound.py:20368
def insert_strike_at(self, index, value)
Definition: compound.py:20166
def set_xmlonly(self, xmlonly)
Definition: compound.py:20292
def replace_anchor_at(self, index, value)
Definition: compound.py:20378
def set_plantuml(self, plantuml)
Definition: compound.py:20362
def insert_superscript_at(self, index, value)
Definition: compound.py:20216
def insert_del_at(self, index, value)
Definition: compound.py:20256
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:20128
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:20674
def set_valueOf_(self, valueOf_)
Definition: compound.py:20449
def set_manonly(self, manonly)
Definition: compound.py:20282
def replace_strike_at(self, index, value)
Definition: compound.py:20168
def insert_emphasis_at(self, index, value)
Definition: compound.py:20186
def insert_subscript_at(self, index, value)
Definition: compound.py:20206
def set_caption(self, caption)
Definition: compound.py:20446
def insert_htmlonly_at(self, index, value)
Definition: compound.py:20276
def set_rtfonly(self, rtfonly)
Definition: compound.py:20302
def replace_xmlonly_at(self, index, value)
Definition: compound.py:20298
def insert_bold_at(self, index, value)
Definition: compound.py:20146
def replace_s_at(self, index, value)
Definition: compound.py:20158
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageType', pretty_print=True)
Definition: compound.py:20513
def replace_ins_at(self, index, value)
Definition: compound.py:20268
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docImageType')
Definition: compound.py:20536
def replace_bold_at(self, index, value)
Definition: compound.py:20148
def __init__(self, type_=None, name=None, width=None, height=None, alt=None, inline=None, caption=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:19940
def replace_emoji_at(self, index, value)
Definition: compound.py:20408
def insert_msc_at(self, index, value)
Definition: compound.py:20356
def insert_emoji_at(self, index, value)
Definition: compound.py:20406
def set_htmlonly(self, htmlonly)
Definition: compound.py:20272
def insert_manonly_at(self, index, value)
Definition: compound.py:20286
def insert_ins_at(self, index, value)
Definition: compound.py:20266
def set_underline(self, underline)
Definition: compound.py:20172
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docImageType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:20558
def set_superscript(self, superscript)
Definition: compound.py:20212
def insert_center_at(self, index, value)
Definition: compound.py:20226
def add_computeroutput(self, value)
Definition: compound.py:20194
def replace_ulink_at(self, index, value)
Definition: compound.py:20138
def add_superscript(self, value)
Definition: compound.py:20214
def replace_rtfonly_at(self, index, value)
Definition: compound.py:20308
def validate_DoxBool(self, value)
Definition: compound.py:20463
def replace_computeroutput_at(self, index, value)
Definition: compound.py:20198
def replace_small_at(self, index, value)
Definition: compound.py:20238
def replace_docbookonly_at(self, index, value)
Definition: compound.py:20328
def set_linebreak(self, linebreak)
Definition: compound.py:20412
def insert_cite_at(self, index, value)
Definition: compound.py:20246
def replace_dot_at(self, index, value)
Definition: compound.py:20348
def insert_image_at(self, index, value)
Definition: compound.py:20336
def insert_ref_at(self, index, value)
Definition: compound.py:20396
def set_formula(self, formula)
Definition: compound.py:20382
def replace_msc_at(self, index, value)
Definition: compound.py:20358
def insert_latexonly_at(self, index, value)
Definition: compound.py:20316
def validate_DoxImageKind(self, value)
Definition: compound.py:20450
def build(self, node, gds_collector_=None)
Definition: compound.py:20658
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:20705
def insert_anchor_at(self, index, value)
Definition: compound.py:20376
def insert_rtfonly_at(self, index, value)
Definition: compound.py:20306
def replace_superscript_at(self, index, value)
Definition: compound.py:20218
def insert_linebreak_at(self, index, value)
Definition: compound.py:20416
def replace_underline_at(self, index, value)
Definition: compound.py:20178
def insert_plantuml_at(self, index, value)
Definition: compound.py:20366
def replace_emphasis_at(self, index, value)
Definition: compound.py:20188
def set_latexonly(self, latexonly)
Definition: compound.py:20312
def insert_computeroutput_at(self, index, value)
Definition: compound.py:20196
def insert_s_at(self, index, value)
Definition: compound.py:20156
def replace_latexonly_at(self, index, value)
Definition: compound.py:20318
Definition: compound.py:15790
def hasContent_(self)
Definition: compound.py:15827
gds_elementtree_node_
Definition: compound.py:15796
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:15886
def set_secondaryie(self, secondaryie)
Definition: compound.py:15825
def build(self, node, gds_collector_=None)
Definition: compound.py:15873
def get_secondaryie(self)
Definition: compound.py:15823
def get_ns_prefix_(self)
Definition: compound.py:15815
parent_object_
Definition: compound.py:15798
secondaryie
Definition: compound.py:15802
ns_prefix_
Definition: compound.py:15799
primaryie_nsprefix_
Definition: compound.py:15801
def get_primaryie(self)
Definition: compound.py:15819
factory
Definition: compound.py:15814
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:15817
def set_primaryie(self, primaryie)
Definition: compound.py:15821
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docIndexEntryType', pretty_print=True)
Definition: compound.py:15835
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:15884
original_tagname_
Definition: compound.py:15797
secondaryie_nsprefix_
Definition: compound.py:15803
def __init__(self, primaryie=None, secondaryie=None, gds_collector_=None, **kwargs_)
Definition: compound.py:15794
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docIndexEntryType')
Definition: compound.py:15858
gds_collector_
Definition: compound.py:15795
subclass
Definition: compound.py:15792
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docIndexEntryType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:15860
primaryie
Definition: compound.py:15800
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS1Type')
Definition: compound.py:8902
def __init__(self, para=None, sect2=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:8806
def build(self, node, gds_collector_=None)
Definition: compound.py:8918
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS1Type', pretty_print=True)
Definition: compound.py:8879
def insert_sect2_at(self, index, value)
Definition: compound.py:8863
def replace_sect2_at(self, index, value)
Definition: compound.py:8865
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:8936
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:8934
def insert_para_at(self, index, value)
Definition: compound.py:8853
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:8845
def replace_para_at(self, index, value)
Definition: compound.py:8855
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS1Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:8904
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:9007
def replace_para_at(self, index, value)
Definition: compound.py:9017
def insert_para_at(self, index, value)
Definition: compound.py:9015
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS2Type')
Definition: compound.py:9064
def replace_sect3_at(self, index, value)
Definition: compound.py:9027
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS2Type', pretty_print=True)
Definition: compound.py:9041
def __init__(self, para=None, sect3=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:8968
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:9096
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:9098
def insert_sect3_at(self, index, value)
Definition: compound.py:9025
def build(self, node, gds_collector_=None)
Definition: compound.py:9080
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS2Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:9066
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:9258
def insert_sect3_at(self, index, value)
Definition: compound.py:9187
def replace_sect3_at(self, index, value)
Definition: compound.py:9189
def build(self, node, gds_collector_=None)
Definition: compound.py:9242
def replace_para_at(self, index, value)
Definition: compound.py:9179
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS3Type')
Definition: compound.py:9226
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:9260
def __init__(self, para=None, sect3=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:9130
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:9169
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS3Type', pretty_print=True)
Definition: compound.py:9203
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS3Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:9228
def insert_para_at(self, index, value)
Definition: compound.py:9177
def insert_para_at(self, index, value)
Definition: compound.py:9334
def replace_para_at(self, index, value)
Definition: compound.py:9336
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:9403
def build(self, node, gds_collector_=None)
Definition: compound.py:9385
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:9401
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalS4Type')
Definition: compound.py:9372
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS4Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:9374
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalS4Type', pretty_print=True)
Definition: compound.py:9349
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:9326
def __init__(self, para=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:9292
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docInternalType')
Definition: compound.py:8740
def __init__(self, para=None, sect1=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:8644
def replace_para_at(self, index, value)
Definition: compound.py:8693
def insert_sect1_at(self, index, value)
Definition: compound.py:8701
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:8683
def set_valueOf_(self, valueOf_)
Definition: compound.py:8706
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:8774
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalType', pretty_print=True)
Definition: compound.py:8717
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:8772
def replace_sect1_at(self, index, value)
Definition: compound.py:8703
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docInternalType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:8742
def build(self, node, gds_collector_=None)
Definition: compound.py:8756
def insert_para_at(self, index, value)
Definition: compound.py:8691
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docLanguageType', pretty_print=True)
Definition: compound.py:25085
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25062
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25136
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docLanguageType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25112
def __init__(self, langid=None, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25036
def insert_para_at(self, index, value)
Definition: compound.py:25070
def replace_para_at(self, index, value)
Definition: compound.py:25072
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docLanguageType')
Definition: compound.py:25108
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25131
def build(self, node, gds_collector_=None)
Definition: compound.py:25120
def replace_para_at(self, index, value)
Definition: compound.py:16082
def build(self, node, gds_collector_=None)
Definition: compound.py:16130
def insert_para_at(self, index, value)
Definition: compound.py:16080
def __init__(self, value=None, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:16046
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListItemType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:16122
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:16072
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:16146
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docListItemType')
Definition: compound.py:16118
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListItemType', pretty_print=True)
Definition: compound.py:16095
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:16141
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docListType')
Definition: compound.py:15997
def set_listitem(self, listitem)
Definition: compound.py:15938
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:16033
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListType', pretty_print=True)
Definition: compound.py:15974
def __init__(self, type_=None, start=None, listitem=None, gds_collector_=None, **kwargs_)
Definition: compound.py:15906
def validate_DoxOlType(self, value)
Definition: compound.py:15954
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:15934
def replace_listitem_at(self, index, value)
Definition: compound.py:15944
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docListType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:16004
def build(self, node, gds_collector_=None)
Definition: compound.py:16012
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:16023
def insert_listitem_at(self, index, value)
Definition: compound.py:15942
def insert_indexentry_at(self, index, value)
Definition: compound.py:13624
def set_plantuml(self, plantuml)
Definition: compound.py:13500
def build(self, node, gds_collector_=None)
Definition: compound.py:14075
def set_docbookonly(self, docbookonly)
Definition: compound.py:13460
def insert_verbatim_at(self, index, value)
Definition: compound.py:13594
def replace_blockquote_at(self, index, value)
Definition: compound.py:13796
def set_formula(self, formula)
Definition: compound.py:13520
def replace_heading_at(self, index, value)
Definition: compound.py:13696
def replace_linebreak_at(self, index, value)
Definition: compound.py:13556
def set_xmlonly(self, xmlonly)
Definition: compound.py:13430
def insert_strike_at(self, index, value)
Definition: compound.py:13304
def insert_anchor_at(self, index, value)
Definition: compound.py:13514
def replace_parblock_at(self, index, value)
Definition: compound.py:13806
def insert_latexonly_at(self, index, value)
Definition: compound.py:13454
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:14091
def set_computeroutput(self, computeroutput)
Definition: compound.py:13330
def insert_computeroutput_at(self, index, value)
Definition: compound.py:13334
def add_computeroutput(self, value)
Definition: compound.py:13332
def set_indexentry(self, indexentry)
Definition: compound.py:13620
def insert_dotfile_at(self, index, value)
Definition: compound.py:13704
def insert_htmlonly_at(self, index, value)
Definition: compound.py:13414
def insert_msc_at(self, index, value)
Definition: compound.py:13494
def replace_htmlonly_at(self, index, value)
Definition: compound.py:13416
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docMarkupType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:13897
def replace_superscript_at(self, index, value)
Definition: compound.py:13356
def insert_emoji_at(self, index, value)
Definition: compound.py:13544
def replace_indexentry_at(self, index, value)
Definition: compound.py:13626
def insert_cite_at(self, index, value)
Definition: compound.py:13384
def insert_emphasis_at(self, index, value)
Definition: compound.py:13324
def replace_details_at(self, index, value)
Definition: compound.py:13786
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:14093
def replace_simplesect_at(self, index, value)
Definition: compound.py:13656
def insert_subscript_at(self, index, value)
Definition: compound.py:13344
def insert_del_at(self, index, value)
Definition: compound.py:13394
def insert_docbookonly_at(self, index, value)
Definition: compound.py:13464
def replace_computeroutput_at(self, index, value)
Definition: compound.py:13336
def replace_table_at(self, index, value)
Definition: compound.py:13686
def insert_superscript_at(self, index, value)
Definition: compound.py:13354
def insert_heading_at(self, index, value)
Definition: compound.py:13694
def insert_plantuml_at(self, index, value)
Definition: compound.py:13504
def insert_details_at(self, index, value)
Definition: compound.py:13784
def insert_xrefsect_at(self, index, value)
Definition: compound.py:13764
def replace_image_at(self, index, value)
Definition: compound.py:13476
def replace_diafile_at(self, index, value)
Definition: compound.py:13726
def insert_variablelist_at(self, index, value)
Definition: compound.py:13674
def insert_small_at(self, index, value)
Definition: compound.py:13374
def set_htmlonly(self, htmlonly)
Definition: compound.py:13410
def set_manonly(self, manonly)
Definition: compound.py:13420
def set_toclist(self, toclist)
Definition: compound.py:13730
def replace_plantuml_at(self, index, value)
Definition: compound.py:13506
def replace_s_at(self, index, value)
Definition: compound.py:13296
def insert_blockquote_at(self, index, value)
Definition: compound.py:13794
def set_orderedlist(self, orderedlist)
Definition: compound.py:13630
def replace_title_at(self, index, value)
Definition: compound.py:13666
def set_programlisting(self, programlisting)
Definition: compound.py:13580
def replace_variablelist_at(self, index, value)
Definition: compound.py:13676
def set_heading(self, heading)
Definition: compound.py:13690
def replace_ulink_at(self, index, value)
Definition: compound.py:13276
def insert_image_at(self, index, value)
Definition: compound.py:13474
def set_simplesect(self, simplesect)
Definition: compound.py:13650
def replace_docbookonly_at(self, index, value)
Definition: compound.py:13466
def replace_orderedlist_at(self, index, value)
Definition: compound.py:13636
def set_itemizedlist(self, itemizedlist)
Definition: compound.py:13640
def insert_parameterlist_at(self, index, value)
Definition: compound.py:13754
def replace_manonly_at(self, index, value)
Definition: compound.py:13426
def replace_bold_at(self, index, value)
Definition: compound.py:13286
def insert_xmlonly_at(self, index, value)
Definition: compound.py:13434
def insert_bold_at(self, index, value)
Definition: compound.py:13284
def set_subscript(self, subscript)
Definition: compound.py:13340
def replace_itemizedlist_at(self, index, value)
Definition: compound.py:13646
def insert_ulink_at(self, index, value)
Definition: compound.py:13274
def insert_center_at(self, index, value)
Definition: compound.py:13364
def insert_toclist_at(self, index, value)
Definition: compound.py:13734
def insert_programlisting_at(self, index, value)
Definition: compound.py:13584
def set_verbatim(self, verbatim)
Definition: compound.py:13590
def insert_table_at(self, index, value)
Definition: compound.py:13684
def insert_parblock_at(self, index, value)
Definition: compound.py:13804
def insert_orderedlist_at(self, index, value)
Definition: compound.py:13634
def insert_itemizedlist_at(self, index, value)
Definition: compound.py:13644
def set_diafile(self, diafile)
Definition: compound.py:13720
def insert_dot_at(self, index, value)
Definition: compound.py:13484
def insert_simplesect_at(self, index, value)
Definition: compound.py:13654
def replace_parameterlist_at(self, index, value)
Definition: compound.py:13756
def replace_programlisting_at(self, index, value)
Definition: compound.py:13586
def set_dotfile(self, dotfile)
Definition: compound.py:13700
def set_superscript(self, superscript)
Definition: compound.py:13350
def set_emphasis(self, emphasis)
Definition: compound.py:13320
def insert_ref_at(self, index, value)
Definition: compound.py:13534
def set_parameterlist(self, parameterlist)
Definition: compound.py:13750
def replace_msc_at(self, index, value)
Definition: compound.py:13496
def replace_preformatted_at(self, index, value)
Definition: compound.py:13576
def set_latexonly(self, latexonly)
Definition: compound.py:13450
def replace_toclist_at(self, index, value)
Definition: compound.py:13736
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docMarkupType', pretty_print=True)
Definition: compound.py:13872
def set_variablelist(self, variablelist)
Definition: compound.py:13670
def set_rtfonly(self, rtfonly)
Definition: compound.py:13440
def replace_underline_at(self, index, value)
Definition: compound.py:13316
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:13266
def set_mscfile(self, mscfile)
Definition: compound.py:13710
def replace_rtfonly_at(self, index, value)
Definition: compound.py:13446
def replace_formula_at(self, index, value)
Definition: compound.py:13526
def insert_diafile_at(self, index, value)
Definition: compound.py:13724
def set_parblock(self, parblock)
Definition: compound.py:13800
def replace_emphasis_at(self, index, value)
Definition: compound.py:13326
def set_copydoc(self, copydoc)
Definition: compound.py:13770
def set_javadocliteral(self, javadocliteral)
Definition: compound.py:13600
def replace_mscfile_at(self, index, value)
Definition: compound.py:13716
def replace_cite_at(self, index, value)
Definition: compound.py:13386
def replace_copydoc_at(self, index, value)
Definition: compound.py:13776
def insert_manonly_at(self, index, value)
Definition: compound.py:13424
def replace_center_at(self, index, value)
Definition: compound.py:13366
def insert_formula_at(self, index, value)
Definition: compound.py:13524
def insert_javadoccode_at(self, index, value)
Definition: compound.py:13614
def set_valueOf_(self, valueOf_)
Definition: compound.py:13809
def insert_underline_at(self, index, value)
Definition: compound.py:13314
def replace_language_at(self, index, value)
Definition: compound.py:13746
def replace_ins_at(self, index, value)
Definition: compound.py:13406
def insert_hruler_at(self, index, value)
Definition: compound.py:13564
def set_language(self, language)
Definition: compound.py:13740
def replace_small_at(self, index, value)
Definition: compound.py:13376
def replace_javadocliteral_at(self, index, value)
Definition: compound.py:13606
def set_linebreak(self, linebreak)
Definition: compound.py:13550
def insert_copydoc_at(self, index, value)
Definition: compound.py:13774
def replace_emoji_at(self, index, value)
Definition: compound.py:13546
def set_underline(self, underline)
Definition: compound.py:13310
def replace_subscript_at(self, index, value)
Definition: compound.py:13346
def add_javadocliteral(self, value)
Definition: compound.py:13602
def replace_xrefsect_at(self, index, value)
Definition: compound.py:13766
def insert_mscfile_at(self, index, value)
Definition: compound.py:13714
def replace_del_at(self, index, value)
Definition: compound.py:13396
def replace_latexonly_at(self, index, value)
Definition: compound.py:13456
def insert_rtfonly_at(self, index, value)
Definition: compound.py:13444
def replace_strike_at(self, index, value)
Definition: compound.py:13306
def insert_javadocliteral_at(self, index, value)
Definition: compound.py:13604
def insert_ins_at(self, index, value)
Definition: compound.py:13404
def insert_s_at(self, index, value)
Definition: compound.py:13294
def insert_language_at(self, index, value)
Definition: compound.py:13744
def replace_dotfile_at(self, index, value)
Definition: compound.py:13706
def replace_anchor_at(self, index, value)
Definition: compound.py:13516
def replace_dot_at(self, index, value)
Definition: compound.py:13486
def set_javadoccode(self, javadoccode)
Definition: compound.py:13610
def insert_preformatted_at(self, index, value)
Definition: compound.py:13574
def replace_verbatim_at(self, index, value)
Definition: compound.py:13596
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docMarkupType')
Definition: compound.py:13895
def replace_javadoccode_at(self, index, value)
Definition: compound.py:13616
def set_blockquote(self, blockquote)
Definition: compound.py:13790
def replace_xmlonly_at(self, index, value)
Definition: compound.py:13436
def set_preformatted(self, preformatted)
Definition: compound.py:13570
def replace_ref_at(self, index, value)
Definition: compound.py:13536
def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, hruler=None, preformatted=None, programlisting=None, verbatim=None, javadocliteral=None, javadoccode=None, indexentry=None, orderedlist=None, itemizedlist=None, simplesect=None, title=None, variablelist=None, table=None, heading=None, dotfile=None, mscfile=None, diafile=None, toclist=None, language=None, parameterlist=None, xrefsect=None, copydoc=None, details=None, blockquote=None, parblock=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:12967
def add_parameterlist(self, value)
Definition: compound.py:13752
def set_details(self, details)
Definition: compound.py:13780
def set_xrefsect(self, xrefsect)
Definition: compound.py:13760
def insert_title_at(self, index, value)
Definition: compound.py:13664
def add_programlisting(self, value)
Definition: compound.py:13582
def replace_hruler_at(self, index, value)
Definition: compound.py:13566
def insert_linebreak_at(self, index, value)
Definition: compound.py:13554
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:26317
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26382
def replace_para_at(self, index, value)
Definition: compound.py:26327
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26380
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParBlockType', pretty_print=True)
Definition: compound.py:26336
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParBlockType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26361
def __init__(self, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:26293
def build(self, node, gds_collector_=None)
Definition: compound.py:26369
def insert_para_at(self, index, value)
Definition: compound.py:26325
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParBlockType')
Definition: compound.py:26359
def insert_emoji_at(self, index, value)
Definition: compound.py:11882
def insert_blockquote_at(self, index, value)
Definition: compound.py:12132
def replace_parblock_at(self, index, value)
Definition: compound.py:12144
def add_linebreak(self, value)
Definition: compound.py:11890
def insert_xrefsect_at(self, index, value)
Definition: compound.py:12102
def add_indexentry(self, value)
Definition: compound.py:11960
def replace_superscript_at(self, index, value)
Definition: compound.py:11694
def set_blockquote(self, blockquote)
Definition: compound.py:12128
def insert_manonly_at(self, index, value)
Definition: compound.py:11762
def set_xrefsect(self, xrefsect)
Definition: compound.py:12098
def set_programlisting(self, programlisting)
Definition: compound.py:11918
def add_underline(self, value)
Definition: compound.py:11650
def insert_ins_at(self, index, value)
Definition: compound.py:11742
def replace_dot_at(self, index, value)
Definition: compound.py:11824
def set_dotfile(self, dotfile)
Definition: compound.py:12038
def replace_title_at(self, index, value)
Definition: compound.py:12004
def add_variablelist(self, value)
Definition: compound.py:12010
def replace_variablelist_at(self, index, value)
Definition: compound.py:12014
def replace_preformatted_at(self, index, value)
Definition: compound.py:11914
def insert_cite_at(self, index, value)
Definition: compound.py:11722
def insert_language_at(self, index, value)
Definition: compound.py:12082
def replace_strike_at(self, index, value)
Definition: compound.py:11644
def set_mscfile(self, mscfile)
Definition: compound.py:12048
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParaType', pretty_print=True)
Definition: compound.py:12210
def replace_copydoc_at(self, index, value)
Definition: compound.py:12114
def insert_variablelist_at(self, index, value)
Definition: compound.py:12012
def set_parameterlist(self, parameterlist)
Definition: compound.py:12088
def set_orderedlist(self, orderedlist)
Definition: compound.py:11968
def set_strike(self, strike)
Definition: compound.py:11638
def replace_itemizedlist_at(self, index, value)
Definition: compound.py:11984
def replace_htmlonly_at(self, index, value)
Definition: compound.py:11754
def insert_title_at(self, index, value)
Definition: compound.py:12002
def insert_hruler_at(self, index, value)
Definition: compound.py:11902
def add_latexonly(self, value)
Definition: compound.py:11790
def set_diafile(self, diafile)
Definition: compound.py:12058
def insert_computeroutput_at(self, index, value)
Definition: compound.py:11672
def add_simplesect(self, value)
Definition: compound.py:11990
def insert_bold_at(self, index, value)
Definition: compound.py:11622
def set_copydoc(self, copydoc)
Definition: compound.py:12108
def add_parameterlist(self, value)
Definition: compound.py:12090
def set_language(self, language)
Definition: compound.py:12078
def insert_itemizedlist_at(self, index, value)
Definition: compound.py:11982
def insert_ref_at(self, index, value)
Definition: compound.py:11872
def replace_formula_at(self, index, value)
Definition: compound.py:11864
def set_docbookonly(self, docbookonly)
Definition: compound.py:11798
def set_toclist(self, toclist)
Definition: compound.py:12068
def add_docbookonly(self, value)
Definition: compound.py:11800
def replace_s_at(self, index, value)
Definition: compound.py:11634
def add_programlisting(self, value)
Definition: compound.py:11920
def add_orderedlist(self, value)
Definition: compound.py:11970
def replace_docbookonly_at(self, index, value)
Definition: compound.py:11804
def insert_s_at(self, index, value)
Definition: compound.py:11632
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:12431
def insert_heading_at(self, index, value)
Definition: compound.py:12032
def set_latexonly(self, latexonly)
Definition: compound.py:11788
def replace_rtfonly_at(self, index, value)
Definition: compound.py:11784
def insert_del_at(self, index, value)
Definition: compound.py:11732
def insert_diafile_at(self, index, value)
Definition: compound.py:12062
def replace_emoji_at(self, index, value)
Definition: compound.py:11884
def set_computeroutput(self, computeroutput)
Definition: compound.py:11668
def add_javadocliteral(self, value)
Definition: compound.py:11940
def replace_details_at(self, index, value)
Definition: compound.py:12124
def set_variablelist(self, variablelist)
Definition: compound.py:12008
def replace_del_at(self, index, value)
Definition: compound.py:11734
def set_valueOf_(self, valueOf_)
Definition: compound.py:12147
def replace_indexentry_at(self, index, value)
Definition: compound.py:11964
def add_superscript(self, value)
Definition: compound.py:11690
def insert_indexentry_at(self, index, value)
Definition: compound.py:11962
def replace_verbatim_at(self, index, value)
Definition: compound.py:11934
def add_computeroutput(self, value)
Definition: compound.py:11670
def set_indexentry(self, indexentry)
Definition: compound.py:11958
def set_plantuml(self, plantuml)
Definition: compound.py:11838
def replace_small_at(self, index, value)
Definition: compound.py:11714
def replace_mscfile_at(self, index, value)
Definition: compound.py:12054
def replace_diafile_at(self, index, value)
Definition: compound.py:12064
def replace_hruler_at(self, index, value)
Definition: compound.py:11904
def insert_image_at(self, index, value)
Definition: compound.py:11812
def insert_rtfonly_at(self, index, value)
Definition: compound.py:11782
def insert_plantuml_at(self, index, value)
Definition: compound.py:11842
def insert_table_at(self, index, value)
Definition: compound.py:12022
def replace_ins_at(self, index, value)
Definition: compound.py:11744
def set_preformatted(self, preformatted)
Definition: compound.py:11908
def set_itemizedlist(self, itemizedlist)
Definition: compound.py:11978
def replace_bold_at(self, index, value)
Definition: compound.py:11624
def set_heading(self, heading)
Definition: compound.py:12028
def replace_latexonly_at(self, index, value)
Definition: compound.py:11794
def replace_manonly_at(self, index, value)
Definition: compound.py:11764
def insert_emphasis_at(self, index, value)
Definition: compound.py:11662
def set_manonly(self, manonly)
Definition: compound.py:11758
def insert_ulink_at(self, index, value)
Definition: compound.py:11612
def set_details(self, details)
Definition: compound.py:12118
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:11604
def set_htmlonly(self, htmlonly)
Definition: compound.py:11748
def replace_anchor_at(self, index, value)
Definition: compound.py:11854
def set_javadoccode(self, javadoccode)
Definition: compound.py:11948
def insert_javadocliteral_at(self, index, value)
Definition: compound.py:11942
def replace_orderedlist_at(self, index, value)
Definition: compound.py:11974
def set_superscript(self, superscript)
Definition: compound.py:11688
def insert_small_at(self, index, value)
Definition: compound.py:11712
def build(self, node, gds_collector_=None)
Definition: compound.py:12413
def set_verbatim(self, verbatim)
Definition: compound.py:11928
def insert_mscfile_at(self, index, value)
Definition: compound.py:12052
def replace_blockquote_at(self, index, value)
Definition: compound.py:12134
def replace_heading_at(self, index, value)
Definition: compound.py:12034
def replace_dotfile_at(self, index, value)
Definition: compound.py:12044
def replace_javadoccode_at(self, index, value)
Definition: compound.py:11954
def insert_docbookonly_at(self, index, value)
Definition: compound.py:11802
def replace_xrefsect_at(self, index, value)
Definition: compound.py:12104
def set_parblock(self, parblock)
Definition: compound.py:12138
def replace_msc_at(self, index, value)
Definition: compound.py:11834
def insert_xmlonly_at(self, index, value)
Definition: compound.py:11772
def replace_language_at(self, index, value)
Definition: compound.py:12084
def insert_strike_at(self, index, value)
Definition: compound.py:11642
def add_preformatted(self, value)
Definition: compound.py:11910
def replace_ref_at(self, index, value)
Definition: compound.py:11874
def set_hruler(self, hruler)
Definition: compound.py:11898
def set_emphasis(self, emphasis)
Definition: compound.py:11658
def insert_preformatted_at(self, index, value)
Definition: compound.py:11912
def insert_anchor_at(self, index, value)
Definition: compound.py:11852
def insert_parblock_at(self, index, value)
Definition: compound.py:12142
def replace_linebreak_at(self, index, value)
Definition: compound.py:11894
def set_underline(self, underline)
Definition: compound.py:11648
def replace_programlisting_at(self, index, value)
Definition: compound.py:11924
def add_javadoccode(self, value)
Definition: compound.py:11950
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParaType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:12235
def set_rtfonly(self, rtfonly)
Definition: compound.py:11778
def insert_superscript_at(self, index, value)
Definition: compound.py:11692
def set_javadocliteral(self, javadocliteral)
Definition: compound.py:11938
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:12429
def set_linebreak(self, linebreak)
Definition: compound.py:11888
def add_subscript(self, value)
Definition: compound.py:11680
def replace_emphasis_at(self, index, value)
Definition: compound.py:11664
def insert_subscript_at(self, index, value)
Definition: compound.py:11682
def insert_copydoc_at(self, index, value)
Definition: compound.py:12112
def set_center(self, center)
Definition: compound.py:11698
def set_xmlonly(self, xmlonly)
Definition: compound.py:11768
def replace_ulink_at(self, index, value)
Definition: compound.py:11614
def replace_underline_at(self, index, value)
Definition: compound.py:11654
def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, hruler=None, preformatted=None, programlisting=None, verbatim=None, javadocliteral=None, javadoccode=None, indexentry=None, orderedlist=None, itemizedlist=None, simplesect=None, title=None, variablelist=None, table=None, heading=None, dotfile=None, mscfile=None, diafile=None, toclist=None, language=None, parameterlist=None, xrefsect=None, copydoc=None, details=None, blockquote=None, parblock=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:11305
def add_blockquote(self, value)
Definition: compound.py:12130
def add_itemizedlist(self, value)
Definition: compound.py:11980
def insert_htmlonly_at(self, index, value)
Definition: compound.py:11752
def replace_table_at(self, index, value)
Definition: compound.py:12024
def insert_dot_at(self, index, value)
Definition: compound.py:11822
def replace_subscript_at(self, index, value)
Definition: compound.py:11684
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParaType')
Definition: compound.py:12233
def replace_toclist_at(self, index, value)
Definition: compound.py:12074
def replace_cite_at(self, index, value)
Definition: compound.py:11724
def replace_center_at(self, index, value)
Definition: compound.py:11704
def replace_simplesect_at(self, index, value)
Definition: compound.py:11994
def replace_image_at(self, index, value)
Definition: compound.py:11814
def replace_parameterlist_at(self, index, value)
Definition: compound.py:12094
def replace_computeroutput_at(self, index, value)
Definition: compound.py:11674
def set_formula(self, formula)
Definition: compound.py:11858
def insert_simplesect_at(self, index, value)
Definition: compound.py:11992
def set_simplesect(self, simplesect)
Definition: compound.py:11988
def set_subscript(self, subscript)
Definition: compound.py:11678
def insert_linebreak_at(self, index, value)
Definition: compound.py:11892
def insert_center_at(self, index, value)
Definition: compound.py:11702
def insert_details_at(self, index, value)
Definition: compound.py:12122
def insert_latexonly_at(self, index, value)
Definition: compound.py:11792
def insert_underline_at(self, index, value)
Definition: compound.py:11652
def replace_xmlonly_at(self, index, value)
Definition: compound.py:11774
def insert_verbatim_at(self, index, value)
Definition: compound.py:11932
def insert_javadoccode_at(self, index, value)
Definition: compound.py:11952
def insert_toclist_at(self, index, value)
Definition: compound.py:12072
def insert_programlisting_at(self, index, value)
Definition: compound.py:11922
def insert_msc_at(self, index, value)
Definition: compound.py:11832
def set_anchor(self, anchor)
Definition: compound.py:11848
def insert_parameterlist_at(self, index, value)
Definition: compound.py:12092
def insert_dotfile_at(self, index, value)
Definition: compound.py:12042
def replace_plantuml_at(self, index, value)
Definition: compound.py:11844
def insert_orderedlist_at(self, index, value)
Definition: compound.py:11972
def insert_formula_at(self, index, value)
Definition: compound.py:11862
def replace_javadocliteral_at(self, index, value)
Definition: compound.py:11944
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25302
def replace_parameternamelist_at(self, index, value)
Definition: compound.py:25312
def set_parameternamelist(self, parameternamelist)
Definition: compound.py:25306
def build(self, node, gds_collector_=None)
Definition: compound.py:25362
def insert_parameternamelist_at(self, index, value)
Definition: compound.py:25310
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25375
def __init__(self, parameternamelist=None, parameterdescription=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25276
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListItem', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25351
def set_parameterdescription(self, parameterdescription)
Definition: compound.py:25316
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListItem', pretty_print=True)
Definition: compound.py:25326
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25373
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamListItem')
Definition: compound.py:25349
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamListType')
Definition: compound.py:25234
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25263
def insert_parameteritem_at(self, index, value)
Definition: compound.py:25183
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25175
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25238
def set_parameteritem(self, parameteritem)
Definition: compound.py:25179
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamListType', pretty_print=True)
Definition: compound.py:25211
def validate_DoxParamListKind(self, value)
Definition: compound.py:25191
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25257
def __init__(self, kind=None, parameteritem=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25149
def build(self, node, gds_collector_=None)
Definition: compound.py:25246
def replace_parameteritem_at(self, index, value)
Definition: compound.py:25185
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamName')
Definition: compound.py:25733
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamName', pretty_print=True)
Definition: compound.py:25710
def __init__(self, direction=None, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25643
def set_valueOf_(self, valueOf_)
Definition: compound.py:25687
def validate_DoxParamDir(self, value)
Definition: compound.py:25688
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25764
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25676
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25770
def set_direction(self, direction)
Definition: compound.py:25684
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamName', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25737
def build(self, node, gds_collector_=None)
Definition: compound.py:25748
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25422
def replace_parametername_at(self, index, value)
Definition: compound.py:25442
def insert_parametername_at(self, index, value)
Definition: compound.py:25440
def set_parametertype(self, parametertype)
Definition: compound.py:25426
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25499
def build(self, node, gds_collector_=None)
Definition: compound.py:25488
def __init__(self, parametertype=None, parametername=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25393
def replace_parametertype_at(self, index, value)
Definition: compound.py:25432
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamNameList', pretty_print=True)
Definition: compound.py:25452
def insert_parametertype_at(self, index, value)
Definition: compound.py:25430
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25501
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamNameList')
Definition: compound.py:25475
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamNameList', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25477
def set_parametername(self, parametername)
Definition: compound.py:25436
def __init__(self, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25519
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamType', pretty_print=True)
Definition: compound.py:25567
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25619
def build(self, node, gds_collector_=None)
Definition: compound.py:25603
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docParamType')
Definition: compound.py:25590
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docParamType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25592
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25550
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25621
def set_valueOf_(self, valueOf_)
Definition: compound.py:25557
def validate_DoxPlantumlEngine(self, value)
Definition: compound.py:23464
def set_superscript(self, superscript)
Definition: compound.py:23234
def set_valueOf_(self, valueOf_)
Definition: compound.py:23463
def insert_plantuml_at(self, index, value)
Definition: compound.py:23388
def replace_small_at(self, index, value)
Definition: compound.py:23260
def insert_underline_at(self, index, value)
Definition: compound.py:23198
def insert_xmlonly_at(self, index, value)
Definition: compound.py:23318
def replace_subscript_at(self, index, value)
Definition: compound.py:23230
def replace_emphasis_at(self, index, value)
Definition: compound.py:23210
def insert_subscript_at(self, index, value)
Definition: compound.py:23228
def replace_strike_at(self, index, value)
Definition: compound.py:23190
def replace_ref_at(self, index, value)
Definition: compound.py:23420
def insert_cite_at(self, index, value)
Definition: compound.py:23268
def replace_dot_at(self, index, value)
Definition: compound.py:23370
def replace_computeroutput_at(self, index, value)
Definition: compound.py:23220
def __init__(self, name=None, width=None, height=None, caption=None, engine=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:22966
def replace_image_at(self, index, value)
Definition: compound.py:23360
def insert_computeroutput_at(self, index, value)
Definition: compound.py:23218
def insert_image_at(self, index, value)
Definition: compound.py:23358
def replace_anchor_at(self, index, value)
Definition: compound.py:23400
def insert_formula_at(self, index, value)
Definition: compound.py:23408
def insert_ulink_at(self, index, value)
Definition: compound.py:23158
def insert_anchor_at(self, index, value)
Definition: compound.py:23398
def set_underline(self, underline)
Definition: compound.py:23194
def insert_s_at(self, index, value)
Definition: compound.py:23178
def replace_latexonly_at(self, index, value)
Definition: compound.py:23340
def set_computeroutput(self, computeroutput)
Definition: compound.py:23214
def replace_htmlonly_at(self, index, value)
Definition: compound.py:23300
def replace_superscript_at(self, index, value)
Definition: compound.py:23240
def set_emphasis(self, emphasis)
Definition: compound.py:23204
def set_plantuml(self, plantuml)
Definition: compound.py:23384
def insert_docbookonly_at(self, index, value)
Definition: compound.py:23348
def insert_bold_at(self, index, value)
Definition: compound.py:23168
def replace_center_at(self, index, value)
Definition: compound.py:23250
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:23150
def insert_emoji_at(self, index, value)
Definition: compound.py:23428
def set_subscript(self, subscript)
Definition: compound.py:23224
def insert_msc_at(self, index, value)
Definition: compound.py:23378
def replace_manonly_at(self, index, value)
Definition: compound.py:23310
def insert_latexonly_at(self, index, value)
Definition: compound.py:23338
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docPlantumlType')
Definition: compound.py:23537
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:23669
def replace_ins_at(self, index, value)
Definition: compound.py:23290
def set_latexonly(self, latexonly)
Definition: compound.py:23334
def replace_ulink_at(self, index, value)
Definition: compound.py:23160
def set_htmlonly(self, htmlonly)
Definition: compound.py:23294
def replace_plantuml_at(self, index, value)
Definition: compound.py:23390
def insert_dot_at(self, index, value)
Definition: compound.py:23368
def replace_underline_at(self, index, value)
Definition: compound.py:23200
def insert_small_at(self, index, value)
Definition: compound.py:23258
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:23691
def insert_superscript_at(self, index, value)
Definition: compound.py:23238
def replace_xmlonly_at(self, index, value)
Definition: compound.py:23320
def insert_linebreak_at(self, index, value)
Definition: compound.py:23438
def replace_bold_at(self, index, value)
Definition: compound.py:23170
def insert_ins_at(self, index, value)
Definition: compound.py:23288
def replace_formula_at(self, index, value)
Definition: compound.py:23410
def replace_emoji_at(self, index, value)
Definition: compound.py:23430
def insert_rtfonly_at(self, index, value)
Definition: compound.py:23328
def build(self, node, gds_collector_=None)
Definition: compound.py:23653
def insert_ref_at(self, index, value)
Definition: compound.py:23418
def insert_htmlonly_at(self, index, value)
Definition: compound.py:23298
def replace_rtfonly_at(self, index, value)
Definition: compound.py:23330
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docPlantumlType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:23553
def insert_emphasis_at(self, index, value)
Definition: compound.py:23208
def replace_s_at(self, index, value)
Definition: compound.py:23180
def set_linebreak(self, linebreak)
Definition: compound.py:23434
def insert_manonly_at(self, index, value)
Definition: compound.py:23308
def set_docbookonly(self, docbookonly)
Definition: compound.py:23344
def replace_del_at(self, index, value)
Definition: compound.py:23280
def replace_linebreak_at(self, index, value)
Definition: compound.py:23440
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docPlantumlType', pretty_print=True)
Definition: compound.py:23514
def replace_docbookonly_at(self, index, value)
Definition: compound.py:23350
def insert_strike_at(self, index, value)
Definition: compound.py:23188
def replace_msc_at(self, index, value)
Definition: compound.py:23380
def replace_cite_at(self, index, value)
Definition: compound.py:23270
def insert_del_at(self, index, value)
Definition: compound.py:23278
def insert_center_at(self, index, value)
Definition: compound.py:23248
def set_linebreak(self, linebreak)
Definition: compound.py:16984
def replace_bold_at(self, index, value)
Definition: compound.py:16720
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRefTextType', pretty_print=True)
Definition: compound.py:17056
def insert_xmlonly_at(self, index, value)
Definition: compound.py:16868
def replace_plantuml_at(self, index, value)
Definition: compound.py:16940
def insert_cite_at(self, index, value)
Definition: compound.py:16818
def replace_linebreak_at(self, index, value)
Definition: compound.py:16990
def replace_docbookonly_at(self, index, value)
Definition: compound.py:16900
def set_plantuml(self, plantuml)
Definition: compound.py:16934
def replace_center_at(self, index, value)
Definition: compound.py:16800
def replace_rtfonly_at(self, index, value)
Definition: compound.py:16880
def insert_docbookonly_at(self, index, value)
Definition: compound.py:16898
def insert_image_at(self, index, value)
Definition: compound.py:16908
def replace_ref_at(self, index, value)
Definition: compound.py:16970
def insert_center_at(self, index, value)
Definition: compound.py:16798
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:16700
def replace_small_at(self, index, value)
Definition: compound.py:16810
def set_underline(self, underline)
Definition: compound.py:16744
def replace_xmlonly_at(self, index, value)
Definition: compound.py:16870
def replace_formula_at(self, index, value)
Definition: compound.py:16960
def set_computeroutput(self, computeroutput)
Definition: compound.py:16764
def replace_ins_at(self, index, value)
Definition: compound.py:16840
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docRefTextType')
Definition: compound.py:17079
def replace_ulink_at(self, index, value)
Definition: compound.py:16710
def insert_s_at(self, index, value)
Definition: compound.py:16728
def insert_anchor_at(self, index, value)
Definition: compound.py:16948
def insert_dot_at(self, index, value)
Definition: compound.py:16918
def set_latexonly(self, latexonly)
Definition: compound.py:16884
def replace_anchor_at(self, index, value)
Definition: compound.py:16950
def insert_small_at(self, index, value)
Definition: compound.py:16808
def __init__(self, refid=None, kindref=None, external=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:16520
def insert_ulink_at(self, index, value)
Definition: compound.py:16708
def insert_rtfonly_at(self, index, value)
Definition: compound.py:16878
def insert_del_at(self, index, value)
Definition: compound.py:16828
def insert_bold_at(self, index, value)
Definition: compound.py:16718
def insert_superscript_at(self, index, value)
Definition: compound.py:16788
def replace_subscript_at(self, index, value)
Definition: compound.py:16780
def set_valueOf_(self, valueOf_)
Definition: compound.py:17005
def insert_emphasis_at(self, index, value)
Definition: compound.py:16758
def replace_msc_at(self, index, value)
Definition: compound.py:16930
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:17205
def replace_superscript_at(self, index, value)
Definition: compound.py:16790
def build(self, node, gds_collector_=None)
Definition: compound.py:17189
def insert_underline_at(self, index, value)
Definition: compound.py:16748
def replace_strike_at(self, index, value)
Definition: compound.py:16740
def validate_DoxRefKind(self, value)
Definition: compound.py:17006
def insert_ins_at(self, index, value)
Definition: compound.py:16838
def insert_ref_at(self, index, value)
Definition: compound.py:16968
def replace_s_at(self, index, value)
Definition: compound.py:16730
def set_subscript(self, subscript)
Definition: compound.py:16774
def replace_htmlonly_at(self, index, value)
Definition: compound.py:16850
def set_docbookonly(self, docbookonly)
Definition: compound.py:16894
def insert_subscript_at(self, index, value)
Definition: compound.py:16778
def insert_emoji_at(self, index, value)
Definition: compound.py:16978
def insert_manonly_at(self, index, value)
Definition: compound.py:16858
def insert_plantuml_at(self, index, value)
Definition: compound.py:16938
def insert_latexonly_at(self, index, value)
Definition: compound.py:16888
def set_external(self, external)
Definition: compound.py:17002
def set_emphasis(self, emphasis)
Definition: compound.py:16754
def replace_underline_at(self, index, value)
Definition: compound.py:16750
def insert_strike_at(self, index, value)
Definition: compound.py:16738
def replace_emoji_at(self, index, value)
Definition: compound.py:16980
def set_htmlonly(self, htmlonly)
Definition: compound.py:16844
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRefTextType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:17089
def replace_computeroutput_at(self, index, value)
Definition: compound.py:16770
def insert_linebreak_at(self, index, value)
Definition: compound.py:16988
def insert_htmlonly_at(self, index, value)
Definition: compound.py:16848
def replace_del_at(self, index, value)
Definition: compound.py:16830
def insert_msc_at(self, index, value)
Definition: compound.py:16928
def replace_cite_at(self, index, value)
Definition: compound.py:16820
def replace_image_at(self, index, value)
Definition: compound.py:16910
def replace_latexonly_at(self, index, value)
Definition: compound.py:16890
def replace_emphasis_at(self, index, value)
Definition: compound.py:16760
def insert_computeroutput_at(self, index, value)
Definition: compound.py:16768
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:17219
def replace_dot_at(self, index, value)
Definition: compound.py:16920
def replace_manonly_at(self, index, value)
Definition: compound.py:16860
def insert_formula_at(self, index, value)
Definition: compound.py:16958
def set_superscript(self, superscript)
Definition: compound.py:16784
def __init__(self, entry=None, gds_collector_=None, **kwargs_)
Definition: compound.py:17665
def insert_entry_at(self, index, value)
Definition: compound.py:17697
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:17689
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:17752
def build(self, node, gds_collector_=None)
Definition: compound.py:17741
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docRowType')
Definition: compound.py:17731
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:17754
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRowType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:17733
def replace_entry_at(self, index, value)
Definition: compound.py:17699
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docRowType', pretty_print=True)
Definition: compound.py:17708
def insert_internal_at(self, index, value)
Definition: compound.py:7859
def insert_para_at(self, index, value)
Definition: compound.py:7849
def set_valueOf_(self, valueOf_)
Definition: compound.py:7878
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect1Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:7918
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect1Type')
Definition: compound.py:7914
def replace_sect2_at(self, index, value)
Definition: compound.py:7871
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:7837
def build(self, node, gds_collector_=None)
Definition: compound.py:7939
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:7960
def __init__(self, id=None, title=None, para=None, internal=None, sect2=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:7789
def replace_para_at(self, index, value)
Definition: compound.py:7851
def replace_internal_at(self, index, value)
Definition: compound.py:7861
def insert_sect2_at(self, index, value)
Definition: compound.py:7869
def set_internal(self, internal)
Definition: compound.py:7855
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:7955
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect1Type', pretty_print=True)
Definition: compound.py:7891
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect2Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:8139
def replace_sect3_at(self, index, value)
Definition: compound.py:8082
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:8181
def __init__(self, id=None, title=None, para=None, sect3=None, internal=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:8010
def replace_para_at(self, index, value)
Definition: compound.py:8072
def insert_sect3_at(self, index, value)
Definition: compound.py:8080
def replace_internal_at(self, index, value)
Definition: compound.py:8092
def set_internal(self, internal)
Definition: compound.py:8086
def set_valueOf_(self, valueOf_)
Definition: compound.py:8099
def insert_para_at(self, index, value)
Definition: compound.py:8070
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect2Type', pretty_print=True)
Definition: compound.py:8112
def insert_internal_at(self, index, value)
Definition: compound.py:8090
def build(self, node, gds_collector_=None)
Definition: compound.py:8160
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:8176
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:8058
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect2Type')
Definition: compound.py:8135
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect3Type')
Definition: compound.py:8356
def set_valueOf_(self, valueOf_)
Definition: compound.py:8320
def set_internal(self, internal)
Definition: compound.py:8307
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect3Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:8360
def insert_internal_at(self, index, value)
Definition: compound.py:8311
def insert_para_at(self, index, value)
Definition: compound.py:8291
def replace_internal_at(self, index, value)
Definition: compound.py:8313
def replace_sect4_at(self, index, value)
Definition: compound.py:8303
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:8279
def replace_para_at(self, index, value)
Definition: compound.py:8293
def __init__(self, id=None, title=None, para=None, sect4=None, internal=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:8231
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect3Type', pretty_print=True)
Definition: compound.py:8333
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:8402
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:8397
def build(self, node, gds_collector_=None)
Definition: compound.py:8381
def insert_sect4_at(self, index, value)
Definition: compound.py:8301
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSect4Type')
Definition: compound.py:8561
def replace_para_at(self, index, value)
Definition: compound.py:8509
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:8599
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect4Type', fromsubclass_=False, pretty_print=True)
Definition: compound.py:8565
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:8495
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSect4Type', pretty_print=True)
Definition: compound.py:8538
def build(self, node, gds_collector_=None)
Definition: compound.py:8583
def set_valueOf_(self, valueOf_)
Definition: compound.py:8526
def set_internal(self, internal)
Definition: compound.py:8513
def __init__(self, id=None, title=None, para=None, internal=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:8452
def replace_internal_at(self, index, value)
Definition: compound.py:8519
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:8604
def insert_internal_at(self, index, value)
Definition: compound.py:8517
def insert_para_at(self, index, value)
Definition: compound.py:8507
def replace_para_at(self, index, value)
Definition: compound.py:16201
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:16187
def __init__(self, kind=None, title=None, para=None, gds_collector_=None, **kwargs_)
Definition: compound.py:16159
def build(self, node, gds_collector_=None)
Definition: compound.py:16266
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:16283
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSimpleSectType')
Definition: compound.py:16251
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:16277
def validate_DoxSimpleSectKind(self, value)
Definition: compound.py:16207
def insert_para_at(self, index, value)
Definition: compound.py:16199
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSimpleSectType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:16255
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSimpleSectType', pretty_print=True)
Definition: compound.py:16228
def set_superscript(self, superscript)
Definition: compound.py:10623
def set_subscript(self, subscript)
Definition: compound.py:10613
def replace_del_at(self, index, value)
Definition: compound.py:10669
def insert_emphasis_at(self, index, value)
Definition: compound.py:10597
def build(self, node, gds_collector_=None)
Definition: compound.py:10995
def replace_small_at(self, index, value)
Definition: compound.py:10649
def replace_ins_at(self, index, value)
Definition: compound.py:10679
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:11013
def insert_ref_at(self, index, value)
Definition: compound.py:10807
def insert_xmlonly_at(self, index, value)
Definition: compound.py:10707
def insert_latexonly_at(self, index, value)
Definition: compound.py:10727
def replace_emoji_at(self, index, value)
Definition: compound.py:10819
def set_plantuml(self, plantuml)
Definition: compound.py:10773
def insert_dot_at(self, index, value)
Definition: compound.py:10757
def insert_cite_at(self, index, value)
Definition: compound.py:10657
def insert_ulink_at(self, index, value)
Definition: compound.py:10547
def replace_s_at(self, index, value)
Definition: compound.py:10569
def set_linebreak(self, linebreak)
Definition: compound.py:10823
def insert_strike_at(self, index, value)
Definition: compound.py:10577
def replace_image_at(self, index, value)
Definition: compound.py:10749
def insert_formula_at(self, index, value)
Definition: compound.py:10797
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:11011
def insert_manonly_at(self, index, value)
Definition: compound.py:10697
def replace_latexonly_at(self, index, value)
Definition: compound.py:10729
def replace_center_at(self, index, value)
Definition: compound.py:10639
def replace_msc_at(self, index, value)
Definition: compound.py:10769
def replace_superscript_at(self, index, value)
Definition: compound.py:10629
def insert_small_at(self, index, value)
Definition: compound.py:10647
def replace_manonly_at(self, index, value)
Definition: compound.py:10699
def replace_cite_at(self, index, value)
Definition: compound.py:10659
def set_latexonly(self, latexonly)
Definition: compound.py:10723
def insert_bold_at(self, index, value)
Definition: compound.py:10557
def replace_formula_at(self, index, value)
Definition: compound.py:10799
def insert_computeroutput_at(self, index, value)
Definition: compound.py:10607
def insert_center_at(self, index, value)
Definition: compound.py:10637
def insert_linebreak_at(self, index, value)
Definition: compound.py:10827
def replace_emphasis_at(self, index, value)
Definition: compound.py:10599
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:10539
def replace_ref_at(self, index, value)
Definition: compound.py:10809
def insert_rtfonly_at(self, index, value)
Definition: compound.py:10717
def set_valueOf_(self, valueOf_)
Definition: compound.py:10832
def insert_docbookonly_at(self, index, value)
Definition: compound.py:10737
def insert_htmlonly_at(self, index, value)
Definition: compound.py:10687
def replace_strike_at(self, index, value)
Definition: compound.py:10579
def replace_ulink_at(self, index, value)
Definition: compound.py:10549
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docSummaryType')
Definition: compound.py:10893
def set_emphasis(self, emphasis)
Definition: compound.py:10593
def replace_computeroutput_at(self, index, value)
Definition: compound.py:10609
def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:10365
def insert_ins_at(self, index, value)
Definition: compound.py:10677
def set_htmlonly(self, htmlonly)
Definition: compound.py:10683
def insert_msc_at(self, index, value)
Definition: compound.py:10767
def insert_superscript_at(self, index, value)
Definition: compound.py:10627
def replace_rtfonly_at(self, index, value)
Definition: compound.py:10719
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSummaryType', pretty_print=True)
Definition: compound.py:10870
def replace_dot_at(self, index, value)
Definition: compound.py:10759
def insert_subscript_at(self, index, value)
Definition: compound.py:10617
def replace_subscript_at(self, index, value)
Definition: compound.py:10619
def replace_bold_at(self, index, value)
Definition: compound.py:10559
def insert_plantuml_at(self, index, value)
Definition: compound.py:10777
def set_docbookonly(self, docbookonly)
Definition: compound.py:10733
def set_computeroutput(self, computeroutput)
Definition: compound.py:10603
def insert_underline_at(self, index, value)
Definition: compound.py:10587
def replace_htmlonly_at(self, index, value)
Definition: compound.py:10689
def insert_image_at(self, index, value)
Definition: compound.py:10747
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docSummaryType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:10895
def insert_s_at(self, index, value)
Definition: compound.py:10567
def insert_anchor_at(self, index, value)
Definition: compound.py:10787
def replace_anchor_at(self, index, value)
Definition: compound.py:10789
def replace_plantuml_at(self, index, value)
Definition: compound.py:10779
def insert_del_at(self, index, value)
Definition: compound.py:10667
def insert_emoji_at(self, index, value)
Definition: compound.py:10817
def replace_docbookonly_at(self, index, value)
Definition: compound.py:10739
def replace_underline_at(self, index, value)
Definition: compound.py:10589
def set_underline(self, underline)
Definition: compound.py:10583
def replace_xmlonly_at(self, index, value)
Definition: compound.py:10709
def replace_linebreak_at(self, index, value)
Definition: compound.py:10829
def build(self, node, gds_collector_=None)
Definition: compound.py:17623
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:17647
def replace_row_at(self, index, value)
Definition: compound.py:17557
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:17543
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:17634
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTableType', pretty_print=True)
Definition: compound.py:17579
def __init__(self, rows=None, cols=None, width=None, caption=None, row=None, gds_collector_=None, **kwargs_)
Definition: compound.py:17511
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTableType')
Definition: compound.py:17602
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTableType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:17612
def insert_row_at(self, index, value)
Definition: compound.py:17555
def set_caption(self, caption)
Definition: compound.py:17547
def build(self, node, gds_collector_=None)
Definition: compound.py:10055
def set_anchor(self, anchor)
Definition: compound.py:9843
def insert_cite_at(self, index, value)
Definition: compound.py:9717
def insert_linebreak_at(self, index, value)
Definition: compound.py:9887
def set_formula(self, formula)
Definition: compound.py:9853
def insert_anchor_at(self, index, value)
Definition: compound.py:9847
def replace_cite_at(self, index, value)
Definition: compound.py:9719
def replace_docbookonly_at(self, index, value)
Definition: compound.py:9799
def replace_emphasis_at(self, index, value)
Definition: compound.py:9659
def replace_formula_at(self, index, value)
Definition: compound.py:9859
def insert_underline_at(self, index, value)
Definition: compound.py:9647
def set_valueOf_(self, valueOf_)
Definition: compound.py:9892
def replace_xmlonly_at(self, index, value)
Definition: compound.py:9769
def replace_latexonly_at(self, index, value)
Definition: compound.py:9789
def insert_msc_at(self, index, value)
Definition: compound.py:9827
def add_latexonly(self, value)
Definition: compound.py:9785
def set_computeroutput(self, computeroutput)
Definition: compound.py:9663
def set_subscript(self, subscript)
Definition: compound.py:9673
def set_superscript(self, superscript)
Definition: compound.py:9683
def replace_small_at(self, index, value)
Definition: compound.py:9709
def replace_underline_at(self, index, value)
Definition: compound.py:9649
def set_emphasis(self, emphasis)
Definition: compound.py:9653
def replace_anchor_at(self, index, value)
Definition: compound.py:9849
def replace_computeroutput_at(self, index, value)
Definition: compound.py:9669
def replace_s_at(self, index, value)
Definition: compound.py:9629
def replace_del_at(self, index, value)
Definition: compound.py:9729
def replace_image_at(self, index, value)
Definition: compound.py:9809
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:10071
def add_computeroutput(self, value)
Definition: compound.py:9665
def insert_s_at(self, index, value)
Definition: compound.py:9627
def replace_emoji_at(self, index, value)
Definition: compound.py:9879
def insert_computeroutput_at(self, index, value)
Definition: compound.py:9667
def insert_emoji_at(self, index, value)
Definition: compound.py:9877
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTitleType')
Definition: compound.py:9953
def set_xmlonly(self, xmlonly)
Definition: compound.py:9763
def replace_strike_at(self, index, value)
Definition: compound.py:9639
def replace_subscript_at(self, index, value)
Definition: compound.py:9679
def __init__(self, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:9425
def insert_xmlonly_at(self, index, value)
Definition: compound.py:9767
def insert_docbookonly_at(self, index, value)
Definition: compound.py:9797
def insert_ins_at(self, index, value)
Definition: compound.py:9737
def replace_dot_at(self, index, value)
Definition: compound.py:9819
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:9599
def insert_ref_at(self, index, value)
Definition: compound.py:9867
def replace_center_at(self, index, value)
Definition: compound.py:9699
def insert_plantuml_at(self, index, value)
Definition: compound.py:9837
def replace_ins_at(self, index, value)
Definition: compound.py:9739
def insert_del_at(self, index, value)
Definition: compound.py:9727
def insert_small_at(self, index, value)
Definition: compound.py:9707
def set_latexonly(self, latexonly)
Definition: compound.py:9783
def add_underline(self, value)
Definition: compound.py:9645
def insert_htmlonly_at(self, index, value)
Definition: compound.py:9747
def set_linebreak(self, linebreak)
Definition: compound.py:9883
def replace_superscript_at(self, index, value)
Definition: compound.py:9689
def insert_emphasis_at(self, index, value)
Definition: compound.py:9657
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTitleType', pretty_print=True)
Definition: compound.py:9930
def set_strike(self, strike)
Definition: compound.py:9633
def add_superscript(self, value)
Definition: compound.py:9685
def set_rtfonly(self, rtfonly)
Definition: compound.py:9773
def set_center(self, center)
Definition: compound.py:9693
def replace_ulink_at(self, index, value)
Definition: compound.py:9609
def insert_rtfonly_at(self, index, value)
Definition: compound.py:9777
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTitleType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:9955
def set_plantuml(self, plantuml)
Definition: compound.py:9833
def insert_center_at(self, index, value)
Definition: compound.py:9697
def insert_strike_at(self, index, value)
Definition: compound.py:9637
def insert_formula_at(self, index, value)
Definition: compound.py:9857
def add_linebreak(self, value)
Definition: compound.py:9885
def insert_bold_at(self, index, value)
Definition: compound.py:9617
def add_docbookonly(self, value)
Definition: compound.py:9795
def insert_superscript_at(self, index, value)
Definition: compound.py:9687
def replace_ref_at(self, index, value)
Definition: compound.py:9869
def replace_bold_at(self, index, value)
Definition: compound.py:9619
def set_htmlonly(self, htmlonly)
Definition: compound.py:9743
def set_docbookonly(self, docbookonly)
Definition: compound.py:9793
def insert_image_at(self, index, value)
Definition: compound.py:9807
def replace_linebreak_at(self, index, value)
Definition: compound.py:9889
def replace_manonly_at(self, index, value)
Definition: compound.py:9759
def replace_msc_at(self, index, value)
Definition: compound.py:9829
def insert_ulink_at(self, index, value)
Definition: compound.py:9607
def replace_plantuml_at(self, index, value)
Definition: compound.py:9839
def replace_htmlonly_at(self, index, value)
Definition: compound.py:9749
def add_subscript(self, value)
Definition: compound.py:9675
def set_underline(self, underline)
Definition: compound.py:9643
def insert_dot_at(self, index, value)
Definition: compound.py:9817
def insert_subscript_at(self, index, value)
Definition: compound.py:9677
def insert_latexonly_at(self, index, value)
Definition: compound.py:9787
def replace_rtfonly_at(self, index, value)
Definition: compound.py:9779
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:10073
def insert_manonly_at(self, index, value)
Definition: compound.py:9757
def set_manonly(self, manonly)
Definition: compound.py:9753
def replace_latexonly_at(self, index, value)
Definition: compound.py:24349
def set_computeroutput(self, computeroutput)
Definition: compound.py:24223
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTocItemType')
Definition: compound.py:24517
def insert_ref_at(self, index, value)
Definition: compound.py:24427
def insert_bold_at(self, index, value)
Definition: compound.py:24177
def set_plantuml(self, plantuml)
Definition: compound.py:24393
def set_latexonly(self, latexonly)
Definition: compound.py:24343
def insert_s_at(self, index, value)
Definition: compound.py:24187
def insert_cite_at(self, index, value)
Definition: compound.py:24277
def replace_subscript_at(self, index, value)
Definition: compound.py:24239
def set_valueOf_(self, valueOf_)
Definition: compound.py:24456
def replace_dot_at(self, index, value)
Definition: compound.py:24379
def insert_xmlonly_at(self, index, value)
Definition: compound.py:24327
def replace_bold_at(self, index, value)
Definition: compound.py:24179
def replace_manonly_at(self, index, value)
Definition: compound.py:24319
def insert_emoji_at(self, index, value)
Definition: compound.py:24437
def insert_plantuml_at(self, index, value)
Definition: compound.py:24397
def replace_computeroutput_at(self, index, value)
Definition: compound.py:24229
def set_subscript(self, subscript)
Definition: compound.py:24233
def insert_dot_at(self, index, value)
Definition: compound.py:24377
def set_emphasis(self, emphasis)
Definition: compound.py:24213
def replace_image_at(self, index, value)
Definition: compound.py:24369
def insert_center_at(self, index, value)
Definition: compound.py:24257
def replace_del_at(self, index, value)
Definition: compound.py:24289
def replace_cite_at(self, index, value)
Definition: compound.py:24279
def replace_docbookonly_at(self, index, value)
Definition: compound.py:24359
def replace_linebreak_at(self, index, value)
Definition: compound.py:24449
def replace_small_at(self, index, value)
Definition: compound.py:24269
def insert_htmlonly_at(self, index, value)
Definition: compound.py:24307
def set_htmlonly(self, htmlonly)
Definition: compound.py:24303
def replace_superscript_at(self, index, value)
Definition: compound.py:24249
def replace_anchor_at(self, index, value)
Definition: compound.py:24409
def insert_underline_at(self, index, value)
Definition: compound.py:24207
def replace_emphasis_at(self, index, value)
Definition: compound.py:24219
def insert_strike_at(self, index, value)
Definition: compound.py:24197
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:24159
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocItemType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:24521
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocItemType', pretty_print=True)
Definition: compound.py:24494
def replace_xmlonly_at(self, index, value)
Definition: compound.py:24329
def insert_small_at(self, index, value)
Definition: compound.py:24267
def insert_rtfonly_at(self, index, value)
Definition: compound.py:24337
def set_docbookonly(self, docbookonly)
Definition: compound.py:24353
def insert_anchor_at(self, index, value)
Definition: compound.py:24407
def replace_emoji_at(self, index, value)
Definition: compound.py:24439
def insert_formula_at(self, index, value)
Definition: compound.py:24417
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:24637
def replace_underline_at(self, index, value)
Definition: compound.py:24209
def __init__(self, id=None, ulink=None, bold=None, s=None, strike=None, underline=None, emphasis=None, computeroutput=None, subscript=None, superscript=None, center=None, small=None, cite=None, del_=None, ins=None, htmlonly=None, manonly=None, xmlonly=None, rtfonly=None, latexonly=None, docbookonly=None, image=None, dot=None, msc=None, plantuml=None, anchor=None, formula=None, ref=None, emoji=None, linebreak=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:23983
def replace_ulink_at(self, index, value)
Definition: compound.py:24169
def replace_htmlonly_at(self, index, value)
Definition: compound.py:24309
def set_linebreak(self, linebreak)
Definition: compound.py:24443
def insert_superscript_at(self, index, value)
Definition: compound.py:24247
def insert_emphasis_at(self, index, value)
Definition: compound.py:24217
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:24642
def set_underline(self, underline)
Definition: compound.py:24203
def replace_plantuml_at(self, index, value)
Definition: compound.py:24399
def insert_subscript_at(self, index, value)
Definition: compound.py:24237
def replace_strike_at(self, index, value)
Definition: compound.py:24199
def insert_manonly_at(self, index, value)
Definition: compound.py:24317
def set_superscript(self, superscript)
Definition: compound.py:24243
def replace_ins_at(self, index, value)
Definition: compound.py:24299
def replace_msc_at(self, index, value)
Definition: compound.py:24389
def insert_ulink_at(self, index, value)
Definition: compound.py:24167
def insert_linebreak_at(self, index, value)
Definition: compound.py:24447
def replace_rtfonly_at(self, index, value)
Definition: compound.py:24339
def insert_del_at(self, index, value)
Definition: compound.py:24287
def replace_s_at(self, index, value)
Definition: compound.py:24189
def replace_center_at(self, index, value)
Definition: compound.py:24259
def insert_msc_at(self, index, value)
Definition: compound.py:24387
def insert_docbookonly_at(self, index, value)
Definition: compound.py:24357
def insert_ins_at(self, index, value)
Definition: compound.py:24297
def build(self, node, gds_collector_=None)
Definition: compound.py:24621
def replace_ref_at(self, index, value)
Definition: compound.py:24429
def insert_latexonly_at(self, index, value)
Definition: compound.py:24347
def insert_image_at(self, index, value)
Definition: compound.py:24367
def replace_formula_at(self, index, value)
Definition: compound.py:24419
def insert_computeroutput_at(self, index, value)
Definition: compound.py:24227
def insert_tocitem_at(self, index, value)
Definition: compound.py:24966
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocListType', pretty_print=True)
Definition: compound.py:24977
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25023
def replace_tocitem_at(self, index, value)
Definition: compound.py:24968
def build(self, node, gds_collector_=None)
Definition: compound.py:25010
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docTocListType')
Definition: compound.py:25000
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:24958
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docTocListType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25002
def __init__(self, tocitem=None, gds_collector_=None, **kwargs_)
Definition: compound.py:24934
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25021
Definition: compound.py:16297
term
Definition: compound.py:16307
def get_term(self)
Definition: compound.py:16324
term_nsprefix_
Definition: compound.py:16308
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:16379
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:16381
gds_collector_
Definition: compound.py:16302
def hasContent_(self)
Definition: compound.py:16328
def __init__(self, term=None, gds_collector_=None, **kwargs_)
Definition: compound.py:16301
parent_object_
Definition: compound.py:16305
subclass
Definition: compound.py:16299
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVarListEntryType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:16360
def get_ns_prefix_(self)
Definition: compound.py:16320
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:16322
ns_prefix_
Definition: compound.py:16306
def build(self, node, gds_collector_=None)
Definition: compound.py:16368
gds_elementtree_node_
Definition: compound.py:16303
factory
Definition: compound.py:16319
def set_term(self, term)
Definition: compound.py:16326
original_tagname_
Definition: compound.py:16304
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docVarListEntryType')
Definition: compound.py:16358
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVarListEntryType', pretty_print=True)
Definition: compound.py:16335
def replace_listitem_at(self, index, value)
Definition: compound.py:16443
def insert_listitem_at(self, index, value)
Definition: compound.py:16441
def set_varlistentry(self, varlistentry)
Definition: compound.py:16427
def __init__(self, varlistentry=None, listitem=None, gds_collector_=None, **kwargs_)
Definition: compound.py:16394
def insert_varlistentry_at(self, index, value)
Definition: compound.py:16431
def replace_varlistentry_at(self, index, value)
Definition: compound.py:16433
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:16500
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVariableListType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:16478
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docVariableListType', pretty_print=True)
Definition: compound.py:16453
def build(self, node, gds_collector_=None)
Definition: compound.py:16489
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docVariableListType')
Definition: compound.py:16476
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:16502
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:25820
def insert_xreftitle_at(self, index, value)
Definition: compound.py:25828
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:25903
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docXRefSectType', pretty_print=True)
Definition: compound.py:25848
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='docXRefSectType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:25875
def replace_xreftitle_at(self, index, value)
Definition: compound.py:25830
def build(self, node, gds_collector_=None)
Definition: compound.py:25887
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:25898
def __init__(self, id=None, xreftitle=None, xrefdescription=None, gds_collector_=None, **kwargs_)
Definition: compound.py:25792
def set_xrefdescription(self, xrefdescription)
Definition: compound.py:25834
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='docXRefSectType')
Definition: compound.py:25871
def set_xreftitle(self, xreftitle)
Definition: compound.py:25824
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='edgelabel', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6741
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='edgelabel')
Definition: compound.py:6739
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6708
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='edgelabel', pretty_print=True)
Definition: compound.py:6717
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6754
def build(self, node, gds_collector_=None)
Definition: compound.py:6743
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6756
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:6689
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='enumvalueType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5382
def set_valueOf_(self, valueOf_)
Definition: compound.py:5326
def set_detaileddescription(self, detaileddescription)
Definition: compound.py:5315
def build(self, node, gds_collector_=None)
Definition: compound.py:5403
def set_briefdescription(self, briefdescription)
Definition: compound.py:5311
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5429
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5419
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='enumvalueType', pretty_print=True)
Definition: compound.py:5352
def set_initializer(self, initializer)
Definition: compound.py:5307
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='enumvalueType')
Definition: compound.py:5375
def __init__(self, id=None, prot=None, name=None, initializer=None, briefdescription=None, detaileddescription=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:5258
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:5299
def validate_DoxProtectionKind(self, value)
Definition: compound.py:5327
def build(self, node, gds_collector_=None)
Definition: compound.py:6300
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='graphType')
Definition: compound.py:6290
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='graphType', pretty_print=True)
Definition: compound.py:6267
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6248
def replace_node_at(self, index, value)
Definition: compound.py:6258
def insert_node_at(self, index, value)
Definition: compound.py:6256
def add_node(self, value)
Definition: compound.py:6254
def __init__(self, node=None, gds_collector_=None, **kwargs_)
Definition: compound.py:6224
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='graphType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6292
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6313
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6311
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:7199
def set_valueOf_(self, valueOf_)
Definition: compound.py:7226
def validate_DoxHighlightClass(self, value)
Definition: compound.py:7227
def replace_ref_at(self, index, value)
Definition: compound.py:7219
def replace_sp_at(self, index, value)
Definition: compound.py:7209
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='highlightType', pretty_print=True)
Definition: compound.py:7250
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:7313
def insert_sp_at(self, index, value)
Definition: compound.py:7207
def insert_ref_at(self, index, value)
Definition: compound.py:7217
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='highlightType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:7277
def __init__(self, class_=None, sp=None, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:7158
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='highlightType')
Definition: compound.py:7273
def build(self, node, gds_collector_=None)
Definition: compound.py:7291
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:7307
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='incType')
Definition: compound.py:2963
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2908
def set_refid(self, refid)
Definition: compound.py:2912
def set_valueOf_(self, valueOf_)
Definition: compound.py:2919
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='incType', pretty_print=True)
Definition: compound.py:2940
def set_local(self, local)
Definition: compound.py:2916
def __init__(self, refid=None, local=None, valueOf_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:2884
def validate_DoxBool(self, value)
Definition: compound.py:2920
def build(self, node, gds_collector_=None)
Definition: compound.py:2972
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='incType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2970
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2994
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2984
def build(self, node, gds_collector_=None)
Definition: compound.py:6525
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='label')
Definition: compound.py:6521
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='label', pretty_print=True)
Definition: compound.py:6499
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='label', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6523
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:6471
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6536
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6538
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6490
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6125
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6202
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='linkedTextType', pretty_print=True)
Definition: compound.py:6148
def __init__(self, ref=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:6091
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6200
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='linkedTextType')
Definition: compound.py:6171
def insert_ref_at(self, index, value)
Definition: compound.py:6133
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='linkedTextType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6173
def build(self, node, gds_collector_=None)
Definition: compound.py:6184
def replace_ref_at(self, index, value)
Definition: compound.py:6135
def set_valueOf_(self, valueOf_)
Definition: compound.py:6138
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='listingType')
Definition: compound.py:6937
def set_codeline(self, codeline)
Definition: compound.py:6895
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listingType', pretty_print=True)
Definition: compound.py:6914
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6891
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listingType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6941
def build(self, node, gds_collector_=None)
Definition: compound.py:6949
def replace_codeline_at(self, index, value)
Definition: compound.py:6901
def insert_codeline_at(self, index, value)
Definition: compound.py:6899
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6965
def __init__(self, filename=None, codeline=None, gds_collector_=None, **kwargs_)
Definition: compound.py:6865
def set_filename(self, filename)
Definition: compound.py:6905
def add_codeline(self, value)
Definition: compound.py:6897
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6960
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2199
def insert_member_at(self, index, value)
Definition: compound.py:2142
def replace_member_at(self, index, value)
Definition: compound.py:2144
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='listofallmembersType')
Definition: compound.py:2176
def build(self, node, gds_collector_=None)
Definition: compound.py:2186
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listofallmembersType', pretty_print=True)
Definition: compound.py:2153
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2197
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='listofallmembersType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2178
def __init__(self, member=None, gds_collector_=None, **kwargs_)
Definition: compound.py:2110
def set_bodyend(self, bodyend)
Definition: compound.py:7671
def __init__(self, file=None, line=None, column=None, declfile=None, declline=None, declcolumn=None, bodyfile=None, bodystart=None, bodyend=None, gds_collector_=None, **kwargs_)
Definition: compound.py:7598
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='locationType')
Definition: compound.py:7702
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:7780
def set_bodyfile(self, bodyfile)
Definition: compound.py:7663
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:7635
def set_declline(self, declline)
Definition: compound.py:7655
def build(self, node, gds_collector_=None)
Definition: compound.py:7732
def set_declcolumn(self, declcolumn)
Definition: compound.py:7659
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:7743
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='locationType', pretty_print=True)
Definition: compound.py:7680
def set_column(self, column)
Definition: compound.py:7647
def set_declfile(self, declfile)
Definition: compound.py:7651
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='locationType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:7730
def set_bodystart(self, bodystart)
Definition: compound.py:7667
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberRefType', pretty_print=True)
Definition: compound.py:2303
def validate_DoxVirtualKind(self, value)
Definition: compound.py:2282
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='memberRefType')
Definition: compound.py:2326
def set_ambiguityscope(self, ambiguityscope)
Definition: compound.py:2267
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2243
def build(self, node, gds_collector_=None)
Definition: compound.py:2352
def __init__(self, refid=None, prot=None, virt=None, ambiguityscope=None, scope=None, name=None, gds_collector_=None, **kwargs_)
Definition: compound.py:2212
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberRefType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2339
def validate_DoxProtectionKind(self, value)
Definition: compound.py:2269
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2382
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2363
def set_briefdescription(self, briefdescription)
Definition: compound.py:3710
def insert_referencedby_at(self, index, value)
Definition: compound.py:3740
def set_enumvalue(self, enumvalue)
Definition: compound.py:3688
def validate_DoxProtectionKind(self, value)
Definition: compound.py:3925
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberdefType', pretty_print=True)
Definition: compound.py:4018
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:3618
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='memberdefType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:4168
def set_inbodydescription(self, inbodydescription)
Definition: compound.py:3718
def set_references(self, references)
Definition: compound.py:3726
def set_requiresclause(self, requiresclause)
Definition: compound.py:3698
def add_reimplementedby(self, value)
Definition: compound.py:3670
def replace_references_at(self, index, value)
Definition: compound.py:3732
def set_protectedsettable(self, protectedsettable)
Definition: compound.py:3822
def set_writable(self, writable)
Definition: compound.py:3806
def insert_enumvalue_at(self, index, value)
Definition: compound.py:3692
def set_initonly(self, initonly)
Definition: compound.py:3810
def set_protectedgettable(self, protectedgettable)
Definition: compound.py:3834
def set_accessor(self, accessor)
Definition: compound.py:3870
def set_maybedefault(self, maybedefault)
Definition: compound.py:3906
def set_required(self, required)
Definition: compound.py:3866
def add_reimplements(self, value)
Definition: compound.py:3660
def set_explicit(self, explicit)
Definition: compound.py:3770
def replace_reimplementedby_at(self, index, value)
Definition: compound.py:3674
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:4257
def set_argsstring(self, argsstring)
Definition: compound.py:3634
def set_initializer(self, initializer)
Definition: compound.py:3702
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:4467
def set_removable(self, removable)
Definition: compound.py:3890
def replace_referencedby_at(self, index, value)
Definition: compound.py:3742
def set_definition(self, definition)
Definition: compound.py:3630
def set_volatile(self, volatile)
Definition: compound.py:3786
def insert_reimplementedby_at(self, index, value)
Definition: compound.py:3672
def set_reimplementedby(self, reimplementedby)
Definition: compound.py:3668
def validate_DoxRefQualifierKind(self, value)
Definition: compound.py:3951
def set_detaileddescription(self, detaileddescription)
Definition: compound.py:3714
def set_optional(self, optional)
Definition: compound.py:3862
def set_transient(self, transient)
Definition: compound.py:3898
def validate_DoxVirtualKind(self, value)
Definition: compound.py:3964
def set_exceptions(self, exceptions)
Definition: compound.py:3706
def replace_reimplements_at(self, index, value)
Definition: compound.py:3664
def set_maybeambiguous(self, maybeambiguous)
Definition: compound.py:3910
def insert_references_at(self, index, value)
Definition: compound.py:3730
def set_readonly(self, readonly)
Definition: compound.py:3882
def insert_reimplements_at(self, index, value)
Definition: compound.py:3662
def replace_param_at(self, index, value)
Definition: compound.py:3684
def add_referencedby(self, value)
Definition: compound.py:3738
def set_property(self, property)
Definition: compound.py:3878
def validate_DoxBool(self, value)
Definition: compound.py:3938
def build(self, node, gds_collector_=None)
Definition: compound.py:4246
def set_privatesettable(self, privatesettable)
Definition: compound.py:3818
def set_refqual(self, refqual)
Definition: compound.py:3778
def validate_DoxMemberKind(self, value)
Definition: compound.py:3912
def set_gettable(self, gettable)
Definition: compound.py:3826
def set_referencedby(self, referencedby)
Definition: compound.py:3736
def set_constrained(self, constrained)
Definition: compound.py:3894
def set_reimplements(self, reimplements)
Definition: compound.py:3658
def insert_param_at(self, index, value)
Definition: compound.py:3682
def set_templateparamlist(self, templateparamlist)
Definition: compound.py:3622
def set_mutable(self, mutable)
Definition: compound.py:3790
def validate_DoxAccessor(self, value)
Definition: compound.py:3977
def set_settable(self, settable)
Definition: compound.py:3814
def __init__(self, kind=None, id=None, prot=None, static=None, strong=None, const=None, explicit=None, inline=None, refqual=None, virt=None, volatile=None, mutable=None, noexcept=None, constexpr=None, readable=None, writable=None, initonly=None, settable=None, privatesettable=None, protectedsettable=None, gettable=None, privategettable=None, protectedgettable=None, final=None, sealed=None, new=None, add=None, remove=None, raise_=None, optional=None, required=None, accessor=None, attribute=None, property=None, readonly=None, bound=None, removable=None, constrained=None, transient=None, maybevoid=None, maybedefault=None, maybeambiguous=None, templateparamlist=None, type_=None, definition=None, argsstring=None, name=None, qualifiedname=None, read=None, write=None, bitfield=None, reimplements=None, reimplementedby=None, param=None, enumvalue=None, requiresclause=None, initializer=None, exceptions=None, briefdescription=None, detaileddescription=None, inbodydescription=None, location=None, references=None, referencedby=None, gds_collector_=None, **kwargs_)
Definition: compound.py:3453
def set_readable(self, readable)
Definition: compound.py:3802
def set_maybevoid(self, maybevoid)
Definition: compound.py:3902
def set_attribute(self, attribute)
Definition: compound.py:3874
def set_constexpr(self, constexpr)
Definition: compound.py:3798
def set_qualifiedname(self, qualifiedname)
Definition: compound.py:3642
def set_bitfield(self, bitfield)
Definition: compound.py:3654
def replace_enumvalue_at(self, index, value)
Definition: compound.py:3694
def set_location(self, location)
Definition: compound.py:3722
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='memberdefType')
Definition: compound.py:4041
def set_noexcept(self, noexcept)
Definition: compound.py:3794
def set_privategettable(self, privategettable)
Definition: compound.py:3830
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='name', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2530
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2497
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:2478
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='name')
Definition: compound.py:2528
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2545
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2543
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='name', pretty_print=True)
Definition: compound.py:2506
def build(self, node, gds_collector_=None)
Definition: compound.py:2532
def set_link(self, link)
Definition: compound.py:6364
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nodeType')
Definition: compound.py:6412
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:6442
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:6447
def set_childnode(self, childnode)
Definition: compound.py:6368
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='nodeType', pretty_print=True)
Definition: compound.py:6389
def insert_childnode_at(self, index, value)
Definition: compound.py:6372
def __init__(self, id=None, label=None, link=None, childnode=None, gds_collector_=None, **kwargs_)
Definition: compound.py:6326
def replace_childnode_at(self, index, value)
Definition: compound.py:6374
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:6356
def set_label(self, label)
Definition: compound.py:6360
def build(self, node, gds_collector_=None)
Definition: compound.py:6431
def add_childnode(self, value)
Definition: compound.py:6370
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='nodeType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:6416
def set_defval(self, defval)
Definition: compound.py:5640
def set_declname(self, declname)
Definition: compound.py:5628
def set_array(self, array)
Definition: compound.py:5636
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='paramType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5689
def set_briefdescription(self, briefdescription)
Definition: compound.py:5648
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:5616
def __init__(self, attributes=None, type_=None, declname=None, defname=None, array=None, defval=None, typeconstraint=None, briefdescription=None, gds_collector_=None, **kwargs_)
Definition: compound.py:5581
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5733
def build(self, node, gds_collector_=None)
Definition: compound.py:5722
def set_type(self, type_)
Definition: compound.py:5624
def set_typeconstraint(self, typeconstraint)
Definition: compound.py:5644
def set_attributes(self, attributes)
Definition: compound.py:5620
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5735
def set_defname(self, defname)
Definition: compound.py:5632
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='paramType', pretty_print=True)
Definition: compound.py:5664
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='paramType')
Definition: compound.py:5687
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:4744
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='qualifiedname', pretty_print=True)
Definition: compound.py:4772
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='qualifiedname', fromsubclass_=False, pretty_print=True)
Definition: compound.py:4796
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:4811
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:4763
def build(self, node, gds_collector_=None)
Definition: compound.py:4798
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:4809
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='qualifiedname')
Definition: compound.py:4794
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='read')
Definition: compound.py:4870
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:4820
def build(self, node, gds_collector_=None)
Definition: compound.py:4874
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:4839
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:4885
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='read', fromsubclass_=False, pretty_print=True)
Definition: compound.py:4872
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:4887
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='read', pretty_print=True)
Definition: compound.py:4848
def set_tooltip(self, tooltip)
Definition: compound.py:3193
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refTextType', pretty_print=True)
Definition: compound.py:3217
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='refTextType')
Definition: compound.py:3240
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:3267
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:3285
def set_external(self, external)
Definition: compound.py:3189
def __init__(self, refid=None, kindref=None, external=None, tooltip=None, valueOf_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:3149
def validate_DoxRefKind(self, value)
Definition: compound.py:3197
def set_valueOf_(self, valueOf_)
Definition: compound.py:3196
def set_kindref(self, kindref)
Definition: compound.py:3185
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:3177
def build(self, node, gds_collector_=None)
Definition: compound.py:3255
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refTextType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:3253
def set_prot(self, prot)
Definition: compound.py:3037
def validate_DoxBool(self, value)
Definition: compound.py:3058
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refType', pretty_print=True)
Definition: compound.py:3078
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:3140
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:3029
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='refType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:3111
def __init__(self, refid=None, prot=None, inline=None, valueOf_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:3003
def set_refid(self, refid)
Definition: compound.py:3033
def build(self, node, gds_collector_=None)
Definition: compound.py:3113
def validate_DoxProtectionKind(self, value)
Definition: compound.py:3045
def set_inline(self, inline)
Definition: compound.py:3041
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:3125
def set_valueOf_(self, valueOf_)
Definition: compound.py:3044
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='refType')
Definition: compound.py:3101
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:7585
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:7489
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='referenceType')
Definition: compound.py:7537
def build(self, node, gds_collector_=None)
Definition: compound.py:7552
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:7568
def __init__(self, refid=None, compoundref=None, startline=None, endline=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:7452
def set_compoundref(self, compoundref)
Definition: compound.py:7497
def set_endline(self, endline)
Definition: compound.py:7505
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='referenceType', pretty_print=True)
Definition: compound.py:7517
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='referenceType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:7550
def set_valueOf_(self, valueOf_)
Definition: compound.py:7508
def set_startline(self, startline)
Definition: compound.py:7501
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='reimplementType')
Definition: compound.py:2852
def set_valueOf_(self, valueOf_)
Definition: compound.py:2821
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2870
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='reimplementType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2856
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='reimplementType', pretty_print=True)
Definition: compound.py:2829
def __init__(self, refid=None, valueOf_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:2792
def build(self, node, gds_collector_=None)
Definition: compound.py:2858
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2814
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2875
def build(self, node, gds_collector_=None)
Definition: compound.py:2456
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:2402
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:2421
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='scope', pretty_print=True)
Definition: compound.py:2430
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='scope')
Definition: compound.py:2452
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:2469
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='scope', fromsubclass_=False, pretty_print=True)
Definition: compound.py:2454
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:2467
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:3423
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:3429
def insert_memberdef_at(self, index, value)
Definition: compound.py:3340
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:3324
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='sectiondefType')
Definition: compound.py:3393
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='sectiondefType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:3397
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='sectiondefType', pretty_print=True)
Definition: compound.py:3370
def set_memberdef(self, memberdef)
Definition: compound.py:3336
def __init__(self, kind=None, header=None, description=None, memberdef=None, gds_collector_=None, **kwargs_)
Definition: compound.py:3294
def set_description(self, description)
Definition: compound.py:3332
def validate_DoxSectionKind(self, value)
Definition: compound.py:3348
def replace_memberdef_at(self, index, value)
Definition: compound.py:3342
def build(self, node, gds_collector_=None)
Definition: compound.py:3412
def set_value(self, value)
Definition: compound.py:7380
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:7434
def build(self, node, gds_collector_=None)
Definition: compound.py:7418
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='spType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:7416
def __init__(self, value=None, valueOf_=None, mixedclass_=None, content_=None, gds_collector_=None, **kwargs_)
Definition: compound.py:7345
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='spType', pretty_print=True)
Definition: compound.py:7392
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:7376
def set_valueOf_(self, valueOf_)
Definition: compound.py:7383
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='spType')
Definition: compound.py:7412
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:7439
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26684
def build(self, node, gds_collector_=None)
Definition: compound.py:26671
def insert_tableofcontents_at(self, index, value)
Definition: compound.py:26617
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26682
def replace_tableofcontents_at(self, index, value)
Definition: compound.py:26619
def set_tableofcontents(self, tableofcontents)
Definition: compound.py:26613
def __init__(self, name=None, reference=None, tableofcontents=None, gds_collector_=None, **kwargs_)
Definition: compound.py:26573
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='tableofcontentsKindType')
Definition: compound.py:26653
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsKindType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26655
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsKindType', pretty_print=True)
Definition: compound.py:26630
def build(self, node, gds_collector_=None)
Definition: compound.py:26547
def replace_tocsect_at(self, index, value)
Definition: compound.py:26505
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:26539
def insert_tocsect_at(self, index, value)
Definition: compound.py:26503
def __init__(self, tocsect=None, gds_collector_=None, **kwargs_)
Definition: compound.py:26471
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:26560
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='tableofcontentsType', pretty_print=True)
Definition: compound.py:26514
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:26558
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='tableofcontentsType')
Definition: compound.py:26537
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:5566
def build(self, node, gds_collector_=None)
Definition: compound.py:5555
def __init__(self, param=None, gds_collector_=None, **kwargs_)
Definition: compound.py:5479
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='templateparamlistType', pretty_print=True)
Definition: compound.py:5522
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:5568
def replace_param_at(self, index, value)
Definition: compound.py:5513
def insert_param_at(self, index, value)
Definition: compound.py:5511
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='templateparamlistType', fromsubclass_=False, pretty_print=True)
Definition: compound.py:5547
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='templateparamlistType')
Definition: compound.py:5545
def __init__(self, gds_collector_=None, **kwargs_)
Definition: compound.py:4896
def export(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='write', pretty_print=True)
Definition: compound.py:4924
def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='', name_='write', fromsubclass_=False, pretty_print=True)
Definition: compound.py:4948
def buildAttributes(self, node, attrs, already_processed)
Definition: compound.py:4961
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)
Definition: compound.py:4963
def build(self, node, gds_collector_=None)
Definition: compound.py:4950
def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='write')
Definition: compound.py:4946
def set_ns_prefix_(self, ns_prefix)
Definition: compound.py:4915
def parseLiteral(inFileName, silence=False, print_warnings=True)
Definition: compound.py:26949
def quote_xml_aux(inStr)
Definition: compound.py:733
def find_attr_value_(attr_name, node)
Definition: compound.py:782
def getSubclassFromModule_(module, class_)
Definition: compound.py:662
def showIndent(outfile, level, pretty_print=True)
Definition: compound.py:709
def quote_python(inStr)
Definition: compound.py:755
def parse(inFileName, silence=False, print_warnings=True)
Definition: compound.py:26845
def parsexmlstring_(instring, parser=None, **kwargs)
Definition: compound.py:66
def quote_attrib(inStr)
Definition: compound.py:740
def parsexml_(infile, parser=None, **kwargs)
Definition: compound.py:49
def raise_parse_error(node, msg)
Definition: compound.py:807
def encode_str_2_3(instr)
Definition: compound.py:799
def parseEtree(inFileName, silence=False, print_warnings=True, mapping=None, nsmap=None)
Definition: compound.py:26878
def get_all_text_(node)
Definition: compound.py:771
def _cast(typ, value)
Definition: compound.py:962
def parseString(inString, silence=False, print_warnings=True)
Definition: compound.py:26914
def get_required_ns_prefix_defs(rootNode)
Definition: compound.py:26828
def quote_xml(inStr)
Definition: compound.py:715
def get_root_tag(node)
Definition: compound.py:26820
name
Definition: setup.py:10